!!!急救急救急救急救谢谢 select distinct 列1,列2 from t 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 distinct 不行啊。因为我的列有很多,20多个要一个一个列出来太麻烦。有更好点的办法吗? 1:select distinct 列1 from t2:select t.* from (select identity(id int,1,1,),mytable.* from myTable) t where t.id=1 1 3 1 1 1 省调-长沙 电脑 光纤1 1..... 1 3 1 1 1 省调-长沙 电脑 光纤2 1.....就象上面的两行,我只要其中的一行就行。除了不用distinct还有什么别的办法吗? select top 1 mytable.* from myTable 请问以下id和mytable 各指什么? 1:select * from tblRd where strType='光纤1'2:select distinct intRDId,intRId,intDId from tblRD where strType='光纤1'??? 上面在前面有个函数有用错勒。还是更正一下:identity(int,1,1) as Id 触发器级联删除的问题! 求解此分页存储过程。求高人加个注释。谢谢===》这个帖子【一精彩的近乎完美的分页存储过程,无分共享】 删除掉表中一行数据记录,如何才能不使ID号产生中断? 关于“权限”的数据库设计,你有什么要说的? sqlserver怎么返回年月日? 请教临时表#tmp sql 如何实现这样的功能? 一道高难度的sql面试题目 各位高手救命啊!!!!!!!!怎样将SQLserver2000中的数据导入mysql中呢??急!!!!!! 怎么办? 针对某一字段发生改变,如何控制触发器不执行?(其余字段发生改变均能执行触发器) 关于_RecordsetPtr 简单问题在线等,解决就结贴!
select distinct 列1 from t2:
select t.* from (select identity(id int,1,1,),mytable.* from myTable) t where t.id=1
1 3 1 1 1 省调-长沙 电脑 光纤2 1.....就象上面的两行,我只要其中的一行就行。除了不用distinct还有什么别的办法吗?
select * from tblRd where strType='光纤1'
2:
select distinct intRDId,intRId,intDId from tblRD where strType='光纤1'???
还是更正一下:
identity(int,1,1) as Id