Wednesday, 25 July 2018

MySQL: Set default value for a Datetime Column

In this post, I am sharing a demonstration on how to set the default value for a Datatime column in MySQL.
I know this very basic topic and nothing special about this, but I am writing here because this is one of the most asking questions by the MySQL Beginner.
Following is a small demonstration on this:
First, Create a table with default:
Second, Insert a test record:
Check the result:

0 comments:

Post a Comment