loyung

如果我们从Excel中导入到SQL中大量数据时,如果需要再单独处理特别需要一个字段去表示处理到那条数据了,这时因为没有主键就可以使用以下方式为每条数据添加id

alter table [count].[dbo].[inst] add id int identity(1,1) not null

 

分类:

技术点:

相关文章: