我正在使用Groovy Sql來獲取結果。這是我的Linux機器的輸出。居然有2所陳述涉及sp_configure 'number of open partitions'
和go
見下文Groovy Sql在批處理中執行語句
%isql -U abc -P abc -S support
1> sp_configure 'number of open partitions'
2> go
Parameter Name Default Memory Used Config Value
Run Value Unit Type
------------------------------ ----------- ----------- ------------
------------ -------------------- ----------
number of open partitions 500 5201 5000
5000 number dynamic
(1 row affected)
(return status = 0)
1>
我使用Groovy代碼
def sql = Sql.newInstance("jdbc:abc:sybase://harley:6011;DatabaseName=support;",dbuname,dbpassword,Driver)
sql.eachRow("sp_configure 'number of open partitions'"){ row ->
/*println row.run_value*/
}
是否有執行批處理語句的方法嗎?
我使用Sybase
工作..謝謝 – abi1964 2012-01-23 09:51:57