sql 使用identity(int,1,1)来产生行号。

1,使用identity(int,1,1)来产生行号,必须把数据插入到一张表中。

2,如图:

 3,代码如下:

 

 

View Code
1 select rowid=identity(int,1,1),userip into tempT from useraccess
2 select * from tempT

 

 

 

 

 参考:http://blog.sina.com.cn/s/blog_5f92e8c50100kfnp.html


 

posted on 2011-08-29 19:37  wtq  阅读(9746)  评论(1编辑  收藏  举报