CREATE TABLE `test` (
`id` INT(10) UNSIGNED NOT NULL,
`c1` VARCHAR(60) NULL DEFAULT NULL,
`c2` VARCHAR(60) NOT NULL,
PRIMARY KEY (`id`)
)
In the information_schema.columns.COLUMN_DEFAULT contains NULL for both c1,c2 columns but c2 doesn't have default value.
How to get the real COLUMN_DEFAULT value?
COLUMN_DEFAULT contains NULL for both c1,c2 columnsis not correct, youc2column is setNOT NULL, then how it is come null ? and what did you mean byCOLUMN_DEFAULTvalue ?