数据量小的时候
数据量大的时候
alter table GR_BarcodeNew alter column id int not null alter table GR_BarcodeNew add constraint pkid primary key (id)
几千条记录左右,可以直接使用表的设计工具进行.
出现问题需要将下面的这个勾勾去掉就可以.
如果数据量超过几万,就必须使用SQL 语句进行,避免超时
alter table GR_BarcodeNew alter column id int not null alter table GR_BarcodeNew add constraint pkid primary key (id)
https://blog.csdn.net/u013129300/article/details/129329786