What are the values of null and non-null when creating a table in mysql? What are the values of null and non-null when creating a table in mysql? Mysql ------ solution -------------------- I usually try not to use null. if your 0 and null have different meanings than null, & nbsp; what are the precautions for setting null values and non-null values when creating a mysql table?
What are the values of null and non-null when creating a table in mysql?
Mysql
------ Solution --------------------
I usually try not to use null
If your 0, null, or ''and null have different meanings, you must allow vacancy.
------ Solution --------------------
This post was last edited by xuzuning at 08:16:39
It depends on your business needs.
NULL indicates that nothing is input, that is, the data item is invalid.
If your business requires an initial value for the data item, use not null (NOT empty) and set the initial value.