删除的sql 语句怎么写? DELETE 表1WHERE case_id not in (select case_id from 表2) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 delete from 表1 a where not exists(select * from 表2 where case_id=a.case_id) delete from 表1where case_id not in (select case_id from 表2) DELETE 表1WHERE case_id not in (select case_id from 表2) DELETE FROM 表1 WHERE CASE_ID NOT IN SELECT (SELECT CASE_ID FROM 表2) delete from 表1where case_id not in (select Case_id from 表2) delete 表1 where case_id not in (select case_id from 表2) delete 表1 where case_id not in (select case_id from 表2) DELETE 表1WHERE case_id not in (select case_id from 表2)yes delete 表1 where case_id not in (select case_id from 表2)推荐这种方法. delete 表1 where case_id not in (select case_id from 表2) delect * from 表1 where case_id not in(select case_id from 表2) delete from 表1where case_id not in (select distinct(case_id) from 表2) delete from 表1 where case_id not in (select case_id from 表2) delete 表1.* from 表1 right join 表2 on 表1.case_id=表2.case_id 在sql server调试通过 对不起,用select都还好好的,换成delete时报错 为什么呢,用select 表1.* from 表1 right join 表2 on 表1.case_id=表2.case_id 没错呀 pw_code 列为唯一标识列,都是以cms_开头,后面的数字为自增的。这样的效果怎样才能实现?谢谢! isnull用法 where中的条件分析 免费在线SQL格式化工具 shinesky(找天的人) talantlee(風) 各50分 SQL Server安装问题请教(64位处理器)---在线等 SQL 求和后 比较大小 [散分]晃晃悠悠,也成星了:)借机再提个建议 有关ERWin的问题 有没有对实时数据库有过研究的人 数据表想按插入时的顺序显示,不想要索引排序!??(在线等....) 在那里实现绑定
where case_id not in (select case_id from 表2)
WHERE case_id not in (select case_id from 表2)
where case_id not in (select Case_id from 表2)
WHERE case_id not in (select case_id from 表2)
yes
where case_id not in (select distinct(case_id) from 表2)
where case_id not in (select case_id from 表2)
在sql server调试通过