0

ストアド プロシージャでの SQL スクリプトの実行に関連するエラーをトラップする方法について、助けが必要です。

select sopScript 
from M_SopInsert 
where soptype = @soptype and sopnumbe = @sopnumbe and lnitmseq = @lnitmseq

If result_count > 0 //if result from above sql query is >0

exec sopScript //loop through the record set and execute sopscript for every record.

注: ここの sopscript には、次のようなスクリプトが含まれています。

update customerMaster 
set custname='abc' 
where custid=100`"
4

2 に答える 2