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

2、如图:

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

 3、代码如下:

 

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

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2022-01-02
  • 2021-08-30
  • 2022-02-08
猜你喜欢
  • 2021-08-17
  • 2022-12-23
  • 2021-09-20
  • 2022-02-16
  • 2022-02-09
  • 2022-12-23
  • 2021-10-27
相关资源
相似解决方案