alter table 表名 add guid varchar(36) update 表名 set guid=newid() 参考: SQL脚本对已有数据的表中每条记录都插入一个GUID,如何处理?-CSDN论坛