一个查询问题? select f1=max(f1),f2=max(f2),f3,f4=max(f4) from 表 group by f3 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 t1字段为: f1, f2 , f3 ,f4select id=identity(int,1,1) , * into temp from t1select a.* from temp a,(select f3,max(id) id from temp group by t3) bwhere a.id = b.id and a.f3 = b.f3 求从A表往B表插入带条件大量数据(100W--200W)的快速方法 列值累加更新问题 继续菜鸟问题,来看看呀。 求顺序包含2、3、4且紧挨着(指三条记录的ID相邻)的个数 如何选择合适的索引类型? sp_addlinkedserver (Microsoft OLE DB Provider for DB2) 使用Distinct 用户可以随意改变字段的表结构,如何设计? SQL Server 2k 注册服务器失败的原因 请教过程 正在使用的商业软件(只有可执行程序),用户向某表插入数据,如何在插入前进行修改? 为什么远程连接不上sql server服务器,需要设置哪些内容?
(select f3,max(id) id from temp group by t3) b
where a.id = b.id and a.f3 = b.f3