Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

default constraint in ms sql

/*Adding a New Column, with default value to an existing table*/
ALTER TABLE (Table_Name)
ADD (Column_Name)(Data_Type) (Null/NOT NULL)
CONSTRAINT (Constraint_Name) DEFAULT (Default_Value)
 
PREVIOUS NEXT
Tagged: #default #constraint #ms #sql
ADD COMMENT
Topic
Name
8+5 =