[英]How can I hook up my Ruby script to my database using a database.yml file?
[英]Hi i have made this tcl script to find the ids by using mql in the database, but my script is not working
下面是 TCL 脚本我不确定脚本是否可以帮助我解决问题。
我收到一个错误 - 应该是“proc name args body”
tcl;
proc {
puts "########### Trying to find the Id's ###########"
mql start transaction
set Id {mql temp query bus 'AIRBUS_E_Document_ElectricalDiagram' * * where 'attribute[clau*].value==FALSE' select id;}
set error[Catch {proc $Id} sResult]
If {$error == 0}{
puts "$Id"
}else{
puts "Error -$sResult"
mql abort transaction
}
puts "######## Finding Id's are Completed #########"
}
如果这里需要更改,请告诉我。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.