Update table with auto increment using sp_executesql

后端 未结 0 590
生来不讨喜
生来不讨喜 2021-02-06 00:03

I\'m trying to translate this simple sql statement into sp_executesql, because the table name is variable:

UPDATE @TableName SET @i = RowNumber = @i + 1


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题