query to set default value in mysql code example
Example 1: set default value mysql db
ALTER TABLE mytbl ALTER j SET DEFAULT 1000;
Example 2: set default today mysql
ALTER TABLE table
ADD column DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP;
ALTER TABLE mytbl ALTER j SET DEFAULT 1000;
ALTER TABLE table
ADD column DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP;