Good day, just want to ask, is it possible to alter a column table and make the default value to empty string.
I tried using this query,
Alter Table Employee Alter Column sJobTitle Varchar(200) DEFAULT ''
Unfortunately, it doesn't work..
Please let me know, if 'm doing it correct..
Thanks,
Link
4条答案
按热度按时间zlhcx6iw1#
You need to add a constraint.
Referring to SQL SERVER – Create Default Constraint Over Table Column
q43xntqr2#
try this query. this query does not change current datas to default.
maybe it work.
cunj1qz13#
simplest answer.
b09cbbtk4#
You can try this, single and multiple column
Single column:
multiple column: