[SQL ] MSSQL 使用select from not in

作者: neocc (neo)   2016-03-08 13:33:30
資料庫名稱:MSSQL
資料庫版本:MSSQL 2013
內容/問題描述:
各位好 我有兩個表 都有自己的非Key 欄位 UID
A表
ID UID content1
作者: bohei (run and fall)   2016-03-08 13:34:00
where not exists(select ....)
作者: kb0130 (烏拉拉)   2016-03-09 10:11:00
Delete from a where not exists (select 1 from b whereA.uid=b.uid)

Links booklink

Contact Us: admin [ a t ] ucptt.com