sql添加字段并加备注、默认值

ALTER TABLE Pact ADD ReceiveOtherPrice numeric(18,2) default 0
GO
EXEC sp_addextendedproperty 'MS_Description', @value=N'验收其他费用' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Pact', @level2type=N'COLUMN', @level2name=N'ReceiveOtherPrice'


 

你可能感兴趣的:(sql,user,table)