-1
我想從#temp_scoring中刪除匹配的帳戶(匹配ID和acct_num),但最終刪除表#temp_scoring中的所有行。下面是代碼:刪除SQL Server中兩個表之間的交集
delete from #temp_scoring
where exists (
select * from #temp_edu te
where te.ID = ID
and te.acct_num = acct_num)
作爲一個方面說明,我已經創建了一個別名#temp_scoring但它給我一個語法錯誤,當我做到了。
其中上#temp_scoring符合條件的刪除?將此表加入DELETE上想要的表中 – techspider