我做這樣的事情:如果NOT EXISTS邏輯
exec up_sp1 -- executing this stored procedure which populates the table sqlcmds
---Check the count of the table sqlcmds,
---if the count is zero then execute up_sp2,
----otherwise wait till the count becomes zero,then exec up_sp2
IF NOT EXISTS (SELECT 1 FROM [YesMailReplication].[dbo].[SQLCmds])
BEGIN
exec up_sp2
END
會是什麼樣的T-SQL的樣子是否正確?
我看到,安倍晉三發表他的反應,而我在寫我的... – Flipster 2010-11-16 23:55:55