千金不卖

探讨 RS BO C# Oracle Sql Server DB2 DataWareHouse Arcplan Cognos MB MQ 信息资源标准 主数据 元数据 数据质量 业务建模 ----姚刚

博客园 首页 新随笔 联系 订阅 管理

2008年9月24日 #

摘要: a:没有主键的情形: Select identity(int,1,1) as iid,* into #tmp from TableName Select * from #tmp Drop table #tmp b:有主键的情形: Select (Select sum(1) from TableName where KeyField <= a.KeyField) as iid,... 阅读全文
posted @ 2008-09-24 13:46 doc 阅读(2153) 评论(0) 推荐(0) 编辑