T-SQL: Add column to a table with default value

by Joe Hunter 13. May 2010 10:48

Useful feature to add column to a table with a default value:

ALTER TABLE MYTABLE

ADD [MYNEWCOL] INT NOT NULL DEFAULT 0

 

 

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen