alter table t_one_on_onedrop constraint <约束名 例如:DF_t_one_on_one_update_at>alter table t_one_on_oneadd constraint <约束名> default SYSDATETIMEOFFSET() for update_at-- 添加字段alter table student_trade_map add[create_at] [datetimeoffset](7) NULL-- 若存在,删除默认值ALTER TABLE studentDROP CONSTRAINT [DF_student_trade_map_create_at]-- 添加默认值ALTER TABLE [dbo].[student_trade_map]ADD CONSTRAINT [DF_student_trade_map_create_at]DEFAULT (sysdatetimeoffset()) FOR [create_at]
