Created
February 25, 2017 05:41
-
-
Save cozingo/11826cec4df703fa55de53ed5c248476 to your computer and use it in GitHub Desktop.
null and default null difference in phpmyadmin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Null column is like NOT NULL in query for int will not accept empty value only 0 or some other number, for char its acceptable as "" is value for char. | |
Default means if it is empty it will be set to NULL or to current timestamp or something to DEFAULT VALUE which is set by user. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment