how to add default constraint in mysql
snippet in sql

how to add default constraint in mysql

user1127

ALTER TABLE "name_table" ALTER "name_column" 
SET DEFAULT value_default;

default number in sql

user8422

//Sql Server

//Add a table 
ALTER TABLE clients ADD Points INT DEFAULT 0
//Edit an existing table
ALTER TABLE clients ADD CONSTRAINT points DEFAULT 0 FOR Points

set default column value sql

user6974

Name Varchar(255) default "Fred"