not null usage in mysql

Posted by pradeep on Stack Overflow See other posts from Stack Overflow or by pradeep
Published on 2010-05-15T19:48:37Z Indexed on 2010/05/15 19:54 UTC
Read the original article Hit count: 238

Filed under:

Hi, I use syntax like name varchar(20) NOT NULL in mysql..i have a big confusion over here.

typically does it mean that this field is mandatory?

but when i store a space in this field it accepts it.is it correct. its like while insert i say '".$_POST['name']."'. even if the name does not have any value query is executed.

can any1 just clarify me on this ?

is NULL and blank space same ?

© Stack Overflow or respective owner

Related posts about mysql