查找表里重复的数据
2016-07-29 00:00
274 查看
SQL语句
select * from tableName where tableName.id in ( select max (tableName.id) from tableName group by tableName.name having count (tableName.id) > 1 )
select * from tableName where tableName.id in ( select max (tableName.id) from tableName group by tableName.name having count (tableName.id) > 1 )
相关文章推荐
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
- centos7使用无线wifi连接
- 备份下JSP的一些常用的迭代
- android初学
- 设置eclipse自动生成的author等注释
- centos7下快速安装mysql
- linux常用查看硬件设备信息命令
- 生产环境c3p0数据源用户名密码加密或解密
- power designer 连接mysql提示“connection test failed”
- TOMCAT设置JDK
- java fina用法
- PowerDesigner 中将Comment(注释)及Name(名称)内容互相COPY的VBS代码
- 免安装oracle客户端使用pl sql连接oracle
- JDBC批量执行executeBatch
- oracle存储过程大数据量insert
- Exe4j破解_Exe4j注册码
- Math.random()方法,获取随机的范围的值
- ORACLE创建DBLINK
- 高维数组的理解
- Scomp 命令参数