![](/img/trans.png)
[英]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.