I have several columns that may contain the data that the user wants to provide.
Example | Email | Name | Surname |
Email - required column is set to NOT NULL - default: None
Name - Not required, so the column is set to NULL - Default value: NULL
Last name - Not required, so the column is set to NULL - Default value: NULL
In phpmyadmin when creating / editing a column; it has an option saying Default: drop-down list No | As defined | NULL | Current timestamp
Because Name | Is the surname optional and not required if I should select NULL by default or maybe NONE?
Which is better and why do you like it?
I know that there is already a lot about it, but I could not find the answer to my question; they were more about NULL or NOT NULL permission, my question is about the default value.
source share