これが私のスクリプトの一部です:
DECLARE @dataId int = 123
-- Here I run more SQL scripts using @dataId
Select from table A where id = @dataId
-- So on it goes in other tables and delete and update other tables
私の質問は、100 個の値を入力@dataId
してスクリプトを順番に繰り返す方法はありますか? @dataId
毎回手動で入力するよりも、SQL Server 2008 でこれを行う簡単な方法はありますか?