SQL 修改字段类型和长度

电话字段设置24个Byte竟然不够,好吧设置为50的长度。

alter table <表名> alter column <字段名> 新类型名(长度)
举例:
alter table T_CustomerFile alter MobilePhoneNumber nvarchar(50)

猜你喜欢

转载自www.cnblogs.com/mobilecard/p/9363632.html