!批量插入数据的重复问题 insert into Tselect * from XX where not exists(select 1 from T where T.主鍵=XX.主鍵) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 --2insert into Tselect XX.* from XXleft join Ton XX.主鍵=T.主鍵where T.主鍵 is null insert into 插入表(a,b,c.....)select * from 来源表 t where not exists(select * from 来源表 where a=t.a) insert into 插入表(a,b,c)select a,b,c from 来源表 t where not exists(select * from 来源表 where a=t.a) 插入后再删除可否?delete from tb where _id not in (select min(_id) from tb group by c1+c2+c3) 这个问题好难啊,困惑好久! 求助 这个sql语句怎么写了? 紧急求助~~~~~~~~ 速度!!!!!!!!! 数据库函数返回数组的问题!(在线等待) 邹大哥~~存储过程中,如何调用其他存储过程的查询结果啊? 请教大家两个问题 在sql server里添加数据的问题 在vfp中如何改变系统时间? sql server 2008 多个事务对同一条记录进行update操作,会发送死锁吗 sql语句请教 关于数据库方面的小问题
select XX.* from XX
left join T
on XX.主鍵=T.主鍵
where T.主鍵 is null
select * from 来源表 t where not exists(
select * from 来源表 where a=t.a
)
insert into 插入表(a,b,c)
select a,b,c from 来源表 t where not exists(
select * from 来源表 where a=t.a
)
delete from tb where _id not in (select min(_id) from tb group by c1+c2+c3)