27,579
社区成员
发帖
与我相关
我的任务
分享
--试试,试前记得备份下...估计要杯具
update table1 set checked=0 where exists(
select 1 from table1 a
where exists(select 1 from table2 where pdfurl=a.title and pdfurl=pageurl))
[Quote=引用 8 楼 laistar 的回复:]
--MSSQL
update a set checked=0
from table1 a,table2 b where a.id = b.id
and a.title=b.pdfurl and a.title =b.pageurl
--这样?
--mssql
update a set checked=0
from table1 a,table2 b where a.title=b.pdfurl+b.pageurl