ADD default constraint in SQL Server to existing column code example
Example 1: how to add default constraint in mysql
ALTER TABLE "name_table" ALTER "name_column"
SET DEFAULT value_default;
Example 2: default number in sql
ALTER TABLE clients ADD Points INT DEFAULT 0
ALTER TABLE clients ADD CONSTRAINT points DEFAULT 0 FOR Points
Example 3: add column alter table default value
ALTER TABLE PERSON
ADD IS_ACTIVE VARCHAR2(1) DEFAULT 'N' NOT NULL
Example 4: How to Add a Default Value to a Column in MS SQL Server
ALTER TABLE <table_name> ADD DEFAULT <DEFAULT_VALUE> FOR <NAME_OF_COLUMN>