0
Почему я не могу это сделать:Удаление строк, где ID в #tempTable
declare @myTempTableList TABLE (
CommId int
)
insert into @myTempTableList (CommId)
VALUES
(742), (803)
delete from myRealTable where MyRealTableId in (
select mrt.MyRealTableId from MyRealTable mrt
where commId in (@myTempTableList)
)
Это говорит мне, что я должен объявить скалярную переменную @myTempTableList