22,206
社区成员
发帖
与我相关
我的任务
分享
update a
set a.col0=null
from a,b
where a.col0=b.col0
UPDATE a
JOIN b on a.col0 = b.col0
SET a.col0 = null
--try
UPDATE a SET col0 = null from a WITH(INDEX=IDX_tb_a)
WHERE EXISTS (SELECT col0 FROM b WHERE a.col0 = b.col0 )