I've a create statement with a field which reads
creat table field1,field2 etc,`Gender` enum('Male','Female') NOT NULL default 'Male'
The problem I have with the Gender field is I can update values and set Gender to '' which I dont want, I thought the enum option would prevent anything other than Male or Female being inserted as a value.
Any help appreciated
Thanks
creat table field1,field2 etc,`Gender` enum('Male','Female') NOT NULL default 'Male'
The problem I have with the Gender field is I can update values and set Gender to '' which I dont want, I thought the enum option would prevent anything other than Male or Female being inserted as a value.
Any help appreciated
Thanks