日期:2014-05-18  浏览次数:20639 次

跪求SQL update问题
例如有A表和B表用SQL 语句比较如果A表中有的数据B表中没有那么将这条数据的某列的字段修改!!!急急请教

------解决方案--------------------
update a set a.flag=1 where not exists (select 1 from b where b.field=a.field)