set debug file to "xxxxx.out";
如果要trace所有的變數
trace on;
如果要trace些變數,則利用參數concation方式,
trace variableName1||variableName2 ;
最後記得要 將trace 關掉..
trace off;
create procedure spTest()
define variableName1 varchar(10);
define variableName2 varchar(10);
set debug file to 'abc.out';
foreach
select col1, col2
into variableName1,variableName2
from testTable
trace variableName1||variableName2 ;
end foreach;trace off;
end procedure ;
沒有留言:
張貼留言