MySQL - TIMESTAMP data type in MySQL

TIMESTAMP data type in MySQL

A TIMESTAMP data type allows you to record a date and time like DATETIME data in 'YYYY-MM-DD HH:MM:SS' format. It has the following properties:

1. The current date and time is assigned to the first TIMESTAMP column in a table if not listed in an INSERT statement.
2. The first TIMESTAMP column in a table will be assigned with the current date and time, if it is not listed in an UPDATE statement.
3. If a TIMESTAMP column is assigned with NULL, the current date and time will be persisted to this column.
4. You can turn off the default current date and time on INSERT by defining the column with "DEFAULT 0".
MySQL - What is a User Account and Predefined User Accounts in MySQL?
What is a User Account and Predefined User Accounts in MySQL? - A user account in MySQL is assigned a username and password to access MySQL databases......
MySQL - Explain how to add a new user account in MySQL
Explain how to add a new user account in MySQL - New users in MySQL can be added using the CREATE USER.....
MySQL - How to change the password for user account in MySQL
How to change the password for user account in MySQL - Password in MySQL can be changed using SET PASSWORD command.......
Post your comment