判断是否有重复记录的SQL语句应该怎么写? update table1 a,table2 b set a.name=b.name goinsert into table1 select * from table2 where not exists (select * from Table1 where id=Table2.id)go 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update table1 set name=b.name from Table1 a,table2 b where a.id=b.idgoinsert into table1 select * from table2 where not exists (select * from Table1 where id=Table2.id)go 关于自动更改数据的问题 从得到结果集中每次取7条记录怎么做? 实在没有分了,请教个储存过程问题 存储过程临时表问题 一个很有意思的SQL语句问题 诚心向数据库大虾们请教! SQL桌面版和SQL标准版最主要的差别是什么 SQL安装不了。提示“安装程序配置服务器失败。参考服务器错误日志和 C:\WINDOWS\sqlstp.log 了解更多信息。”[谁有解决方法,请进! ] 请问建立索引和约束有什么区别? 请各位帮忙设计我的这几个表,我怎么看我设计的都不合理,谢谢大家! 怎样在程序中生成dbf文件?急!急!急!各位仁兄帮忙! 求大侠相救呀!
go
insert into table1 select * from table2 where not exists (select * from Table1 where id=Table2.id)
go