更新时间:2023-12-01 08:42:58
这将取决于数据库,但对于 SQL Server,这可以通过以下方式实现:
This will depend on the database but for SQL Server, this could be achieved as follows:
alter table Example add NewColumn int identity(1,1)
向现有表中添加一列并在 MS SQL Server 上对其进行唯一编号