是说存在重复记录的么:
select b.* from table1 a,table1 b where a.id<>b.id and a.b=b.b and a.c=b.c and a.d=b.d;
select b.* from table1 a,table1 b where a.id<>b.id and a.b=b.b and a.c=b.c and a.d=b.d;
解决方案 »
- mysql datestamp 类型转换成date类型?
- 请问,win下 Postgresql8.3如何让非本机用户访问?
- mysql 存储过程嵌套调用,在调用者中对被调用者返回的记录集进行处理,问题是如何再调用者中获得被调用者的记录集呢?临时表会不会速度太慢呢?
- mysql使用的问题?
- 高分请教远程连接MYSQL的问题(急):
- 乞求一sql写法
- 创建MYSQL数据库和表用什么软件比较方便
- 怎样判断字段属性为text的字段长度?在线等候,谢谢
- 为什么Mysql会down掉,请各位帮帮忙?
- 对MYSQL进行LOAD DATA INFILE '' INTO DATABASE能否在客户端程序中处理?
- mysql-front的汉化显示问题
- mysql的视窗管理界面
select distinct b.* from table1 a,table1 b where a.id<>b.id and a.b=b.b and a.c=b.c and a.d=b.d;
select * from tabl1 where concat(b,c,d) in(select concat(b,c,d) from tabl1 group by b,c,d having count(*)>1);
如果bcd组合起来有恰好组合同但各个值不完全同的(如er tt ee=e rtt ee),可以加写特殊字符分割,比如:concat(b,'#',c,'#',d)(也有#号组合同的,这个就少了吧)