我需要从表中删除一些索引与表变量中的索引相等的行
declare @m_table as table
(
number NUMERIC(18,0)
)
...
inserting some rows into @m_table
...
DELETE ct FROM [dbo].[customer_task] ct
inner join project_customer pc on pc.id_customer = @m_table.number
inner join customer_user cu on cu.id_project_customer = pc.id
WHERE ct.id_csr_user = cu.id AND ct.id_status = 1;
但是这段代码会产生错误:必须声明标量变量“@m_table”如何解决?