Targeted novice

2011年目标:个人提升,心智成长,时间管理,究深涉广,敏捷开发,多读一本书

导航

统计

公告

一句SQL得出表中重复的数据(TMP)

select field1 from table1 group by field1 having count(field1) > 0

得出table1表中field1字段重复的数据。

field1
112
113
124
242
113
124

得出结果为
field1
113
124

posted on 2006-06-13 17:14 嘉瑜 阅读(1912) 评论(8) 编辑 收藏