dadamssg Posted January 26, 2009 Share Posted January 26, 2009 i have a column in my db created VARCHAR(20) NOT NULL but it still allows for nothing to get stored...whats the deal? Link to comment https://forums.phpfreaks.com/topic/142419-not-null-not-working/ Share on other sites More sharing options...
toplay Posted January 26, 2009 Share Posted January 26, 2009 What do you mean by "nothing"? An empty string is not considered a NULL value. An empty string and a NULL value are two different values. If you don't want to allow empty cells, then I suggest you code for it (validate data before inserting/updating table(s)). Good luck. Link to comment https://forums.phpfreaks.com/topic/142419-not-null-not-working/#findComment-746209 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.