Hello,
Although the MYSQL documentation states that there are default values for all its datatypes, whenever I specify a default value for an ENUM type, and then use "DEFAULT" in my INSERT query, when the row is created, the ACTUAL value stored is '0' and not the default value. Any ideas why this might not be working?
I did use NOT NULL when defining the ENUM type so that the default value would be the first in the ENUM list. When I look at the DESCRIBE table data, the default value is clearly there.
Any suggestions appreciated.
Thanks
Maria
Although the MYSQL documentation states that there are default values for all its datatypes, whenever I specify a default value for an ENUM type, and then use "DEFAULT" in my INSERT query, when the row is created, the ACTUAL value stored is '0' and not the default value. Any ideas why this might not be working?
I did use NOT NULL when defining the ENUM type so that the default value would be the first in the ENUM list. When I look at the DESCRIBE table data, the default value is clearly there.
Any suggestions appreciated.
Thanks
Maria