重复的记录:标准是什么?KEY字段?
解决方案 »
- mysql查询问题
- mysql 6服务无法启动
- 生僻字显示乱码问题
- (菜鸟在线等)问个数据库索引的问题
- 请教一个联合查询的问题。
- 关于user()与system_user()的区别
- 我在另外的机器上连接数据库,用这样MYSQL -H 192.168.0.1 -U ROOT -P391100 为什么说ERROR 1045: Access denied for user: 'root@billga
- ~~~~查字典,修改字段值~~~~
- mysql视图有时报Can't create/write to file 'C:\windows\TEMP\#sql_1690_0.MYI
- 急,win2000下怎样配置并创建mysql数据库表及字段?一定给分。
- mysql集群防火墙的问题
- mysql 表插入数据后,索引值为空,求解
如果是重复的记录,则主键ID相同,字段date,barcode也相同。
select id,date,barcode from a.temp1 left join b.temp1 on a.id = b.id and a.date = b.date and a.barcode = b.barcode where b.id is null
select a.* from a left join b on a.id=b.id where b.id is null
这个是追加重复的记录?
where b.id is null
只会查出不在b表的数据?
怎么会重复呢?