码迷,mamicode.com
首页 > 其他好文 > 详细

phone number is not known @w@ have no phone, and thus no phone number

时间:2016-11-24 18:47:34      阅读:121      评论:0      收藏:0      [点我收藏+]

标签:strong   new   xterm   who   ble   values   problem   ssi   and   

http://dev.mysql.com/doc/refman/5.7/en/problems-with-null.html

B.5.4.3 Problems with NULL Values

The concept of the NULL value is a common source of confusion for newcomers to SQL, who often think that NULL is the same thing as an empty string ‘‘. This is not the case. For example, the following statements are completely different:

mysql> INSERT INTO my_table (phone) VALUES (NULL);
mysql> INSERT INTO my_table (phone) VALUES (‘‘);

Both statements insert a value into the phone column, but the first inserts a NULL value and the second inserts an empty string. The meaning of the first can be regarded as phone number is not known” and the meaning of the second can be regarded as the person is known to have no phone, and thus no phone number.”

http://dev.mysql.com/doc/refman/5.7/en/working-with-null.html

NULL means a missing unknown value”.

phone number is not known @w@ have no phone, and thus no phone number

标签:strong   new   xterm   who   ble   values   problem   ssi   and   

原文地址:http://www.cnblogs.com/yuanjiangw/p/6098522.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!