求sql语句 本帖最后由 tinkou 于 2010-07-04 00:38:06 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select 单据id,序号=(select count(1)+1 from tb where 单据id=t.单据id and 部id<t.部id),内部idfrom tb t更新也是一个道理 如果是2005,可以用 ROW_NUMBER() update t set序号=(select count(1)+1 from tb where 单据id=t.单据id and 部id<t.部id from tb t 处理返回值 更新时间触发器 关于一条SQL语句,有没有高手能实现? 向数据表中插入一幅图片 关于在jsp中显示null的问题 如何实现这样的"列转化成行" 有关标识的问题:insert 目标_table select * from 源_table txt數據導入到sql server中,如果每天導如何處理重復的記錄???? SQL查询:如何能象MYSQL的LIMITE一样从第M行取N行出来??? pb连接sql server 2000的问题。 请教,在SQL2008里的BAK怎么在2000下还原 出现这样的错误提示?
序号=(select count(1)+1 from tb where 单据id=t.单据id and 部id<t.部id),
内部id
from tb t
更新也是一个道理
序号=(select count(1)+1 from tb where 单据id=t.单据id and 部id<t.部id
from tb t