alter table a add xxx int update a set xxx=id alter table a drop column id exec sp_rename 'a.xxx', 'id', 'column' 转载于:https://www.cnblogs.com/yg_zhang/archive/2007/07/20/825572.html