在SQL Server中没有像Orcal中的rowid,但是可以运用一定的变通达到这个效果。

1、建立临时表,其中包含rowid,2、重命名原表后删除临时表USE Tianzx

    SELECT identity(int,1,1) as rowid,flow.* into temptable from flow--建立临时表,其中包含rowid

    DROP TABLE dbo.订单信息对应关系--删除原有表格
    EXEC sp_rename 'tmp_ordermaininfo','订单信息对应关系'--重命名临时表

相关文章:

  • 2022-02-10
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-20
  • 2021-09-13
  • 2021-07-05
  • 2021-12-21
  • 2021-09-11
相关资源
相似解决方案