That's not how it works. The following demonstrates the feature I think you want.
mysql testtest> create table testnull ( X varchar(10) not null ); Query OK, 0 rows affected (0.11 sec)
test> insert into testnull values ( null ); ERROR 1048: Column 'X' cannot be null test>
One other case: If there is a default value on the column, the default will be inserted instead of NULL.
-bluejack
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]