SQL NOT NULL

SQL NOT NULL  make sure that a column does not accept null values

Example

mysql> CREATE TABLE  `new_users` (`id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, PRIMARY KEY (`id`));
Query OK, 0 rows affected (0.09 sec)

Here the field will never have a null value

Share