All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
基于PHP和AJAX创建RSS聚合器_[PHP教程]
C#教程:COM+不同用途的类型应用实例
C#中创建窗体
Webservice中使用Session、Application_[Asp.Net教程]
了解ASP2.0向其它网页传递信息的方法_[Asp.Net教程]
PHP入门:初学来看配置文件PHP.INI的中文注释_php资料_编程技术
SQL Server 索引基础知识(4)----主键与聚集索引_[SQL Server教程]
.net组件开发系列(五)之深入理解控件的呈现原理_[Asp.Net教程]
ADO.NET修改数据库中数据
如何使用SQL Server数据库查询累计值_[SQL Server教程]
Reading number is top 10 pictures
看到这名字我也是醉了。。。。。。
The money of more than 100 countries and regions20
The real super beauty13
红楼梦金陵十二钗(1)
Steal to eat bacon bird
2012 national geographic daily picture2
Group of female porn in 《westwards》, uninhibited woman threatened to not the bottom line
30 beautiful school beauty4
Fury xp desktop theme
The world's top ten most beautiful railway station2
Download software ranking
Red cliff
Boxer vs Yellow3
超级战舰
Tram sex maniac 2 (H) rar bag1
Tram sex maniac 2 (H) rar bag2
美女写真1
Photoshop 8.0图象编辑软件
jdk1.5
传奇私服架设教程-chm
C++教程第四版
归海一刀 published in(发表于) 2014/2/3 6:46:29 Edit(编辑)
查询表里面有N组相同的记录经典SQL语句_[SQL Server教程]

查询表里面有N组相同的记录经典SQL语句_[SQL Server教程]

查询表里面有N组相同的记录经典SQL语句_[SQL Server教程]

表里面有N条相同的记录,要查出来.


如:
ID Name
12 d
34 e
543 t
34 e
12 d
45 y
543 t

查询的结果应为:
ID Name
12 d
12 d
34 e
34 e
543 t
543 t


假如表名为Table03,可以用下面语句轻松实现:


select id,name from table03 where name in(select name from table03 group by name having count(name)>1)







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.