We can insert NULL into a column of a table.
There are two examples,let's see the difference.
1、INSERT INTO table_name VALUES( id,NULL);
This method inserts NULL to a column of the table.
2、INSERT INTO table_name VALUES( id,'');
This method doesn't insert NULL into the column ofthe table,
because '' is a valid value,though it is a empty string.
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10484922/viewspace-1002257/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10484922/viewspace-1002257/