StupidBeauty
Read times:1692Posted at: - no title specified

转载 SQL 重复记录查询 ( 转载 )

可使用“count”函数来查询出指定数据表中某个字段的重复个数。

http://www.cnblogs.com/congcong/archive/2008/11/07/1328834.html

亮点:

( )
比方说
A 表中存在一个字段“ name”
而且不同记录之间的“ name” 值有可能会相同,
现在就是需要查询出在该表中的各记录之间,“ name” 值存在重复的项;
Select Name, Count ( * From Group By Name  Having Count ( * > 1

未知美人

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands