红色字体时表明,蓝色字体时列名
--添加列
ALTER TABLE Ba_CustomerLinkmanAddress ADD CarryCategory int
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'配送方式(int):1=快递,2=司机配送,3=客户自提,4=业务员送,5=无需配送。
* 送货路线(int):当“配送方式=司机配送”时,CarryLineId必填,否则为null。' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Ba_CustomerLinkmanAddress', @level2type=N'COLUMN',@level2name=N'CarryCategory'
GO
--修改列
alter table Ba_CustomerCompany alter column InvoiceDemand varchar(400)
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'字段修改成400' , @level0type=N'SCHEMA',@level0name=N'dbo',
@level1type=N'TABLE',@level1name=N'Ba_CustomerCompany ', @level2type=N'COLUMN',@level2name=N'InvoiceDemand '
GO