Collections:
What Is TIMESTAMP Data Type in MySQL
What Is TIMESTAMP Data Type in MySQL?
✍: FYIcenter.com
A TIMESTAMP data type allows you to record a date and time like DATETIME data type. But it has some interesting features when used on a table column:
The tutorial exercise below provides you 2 equivalent ways to create a TIMESTAMP column:
CREATE TABLE links (lastDate TIMESTAMP); CREATE TABLE links (lastDate TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
⇒ Ways to Get the Current Time in MySQL
⇐ Date and Time Functions in MySQL
2018-03-13, 2955🔥, 0💬
Popular Posts:
How to download and install the scaled-down database AdventureWorksLT in SQL Server? If you want to ...
Is SQL Server Transact-SQL case sensitive? No. Transact-SQL is not case sensitive. Like the standard...
How To Select All Columns of All Rows from a Table with a SELECT statement in SQL Server? The simple...
How To Generate CREATE TABLE Script on an Existing Table in SQL Server? If you want to know how an e...
How To Generate CREATE VIEW Script on an Existing View in SQL Server? If you want to know how an exi...