Simple method of alter in sqlserver

alter table test alter column aaa int--modify field type
alter table test add ccc varchar(50)--add column
alter table test drop column ccc--delete column

EXEC sp_rename "test.aaa","abc","COLUMN" -- modify the field name

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325776513&siteId=291194637