sql server delete the default value (default) method

Original: SQL Server remove the default value (default) method   

No nonsense -----

For example, to delete the default value student sex table

sp_help student; query results

Find the value of the corresponding constraiont_name

At last

 

ALTER TABLE student
DROP DF__student__sex__34C8D9D1

 

No nonsense -----

For example, to delete the default value student sex table

sp_help student; query results

Find the value of the corresponding constraiont_name

At last

 

ALTER TABLE student
DROP DF__student__sex__34C8D9D1

 

Guess you like

Origin www.cnblogs.com/lonelyxmas/p/12072722.html