如何去掉重复的记录? select min(stdid),stdname from std group by stdname 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 参考:Select * From std Where stdid not in (Select Min(stdid) From std as P Where P.stdname = stdid.stdname) select stdid,stdname from 表 where not exists(select 1 from 表 where stdname=a.stdname and stdid>a.stdid)--这里'<'或者'>'均可 select distinct stdid,stdname from std 方法有很多种的,不过dongdongxxx(独自爱你) 的方法不行的。一楼他们的都可以-----------如果你有MSN想挂金币,金币可以换钱或换奖品可以到这边注册http://www.5sai.com/r.do?r=123086 请教这个查询如何写 怎样实现这个? 关于数据库的创建 求助啊!哪位大神能帮帮我,我们要考试了,可是我完全混过来的,期末题不给答案。。。求帮助!!! 求一SQL语句!!!! 高分请教,如何把oracle数据库中的大字段导入到sqlserver数据库中,在线等!急! 怪事! 在SQL SERVER 里,这样的语法有错吗? 连接数据库出现一般性网络错误,请救急 如何在视图中显示中文名称呢 【条件筛选求解答!】随便看一眼就知道的题目,小白还是来求问各位!谢谢各位! 删除主键问题 客户端机器无法通过互联网访问服务器sql2000
Select * From std Where stdid not in
(Select Min(stdid) From std as P Where P.stdname = stdid.stdname)
select stdid,stdname
from 表
where not exists(select 1 from 表 where stdname=a.stdname and stdid>a.stdid)
--这里'<'或者'>'均可
select distinct stdid,stdname from std
dongdongxxx(独自爱你) 的方法不行的。
一楼他们的都可以
-----------
如果你有MSN想挂金币,金币可以换钱或换奖品可以到这边注册
http://www.5sai.com/r.do?r=123086