34,593
社区成员
发帖
与我相关
我的任务
分享
Alter table tabname add column col type
alter table tabname alter column col type
ALTER TABLE 表名
ALTER COLUMN COL 类型 长度
alter table 表名称
alter column 字段名称 nvarchar(50)
if object_id('tb')is not null drop table tb
go
create table tb(col varchar(10))
insert tb select 'test'
go
alter table tb
alter column col varchar(20)
alter table tb
alter column [key] nvarchar(50)