This tutorial explains how to use the MySQL TIMESTAMP function with syntax and examples.
The MySQL TIMESTAMP function converts an expression to a datetime value and if specified adds an optional time interval to the value.
The syntax for the TIMESTAMP function in MySQL is:
A date or datetime value that will be converted.
Optional. It is a time value to add to the expression.
The TIMESTAMP function can be used in the following versions of MySQL:
Let's look at some MySQL TIMESTAMP function examples and explore how to use the TIMESTAMP function in MySQL.
For example: