Query for altering the columns default value
-
12-11-2019 - |
문제
I have googled a lot with no success , just need to know the query for altering the column default value.
해결책
1) Drop the old default value:
ALTER TABLE <TableName> DROP CONSTRAINT <DF_ContstraintName>
2) Add new default value:
ALTER TABLE <TableName> ADD CONSTRAINT
<DF_ContstraintName> DEFAULT <Value> FOR <ColumnName>
제휴하지 않습니다 StackOverflow