按顺序更新100个怎么做? 更新100个数据,怎么做? update top (100) table set a='X'; 如果想按时间顺序来更新头100个的话 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ;with cte as( select top(100) * from table order by [date])update cte set a='X' with cte as (select top (100) * from table order by 时间列)update cte set a='X' update Tableset A= 'X' where id in (select top (100) id from Table order by time) update t1 set t1.a='X'from table t1 join (select top(100) [id] from table order by [date]) t2 on t1.[id]=t2.[id] sql 2005数据去重 根据表字段值插入数据 特定数据集显示 各位同志请帮帮我(新手)! 关于数据库的基本问题?? 多个列的转换可以否用PIVOT进行转换 全文检索如何显示查询的文本前后的文本 数据类型转换问题 为什么SQL2008里的数据库兼容级别只有80还有一个7.0! 简单的delete操作,发现一个头疼的问题,高分在线求助 求一比较复杂问题 sql2005下sqlxml的配置
;with cte as(
select top(100) * from table order by [date]
)
update cte set a='X'
select top (100) * from table order by 时间列
)update cte set a='X'
set A= 'X'
where id in (select top (100) id from Table order by time)
update t1 set t1.a='X'
from table t1 join (select top(100) [id] from table order by [date]) t2 on t1.[id]=t2.[id]