Home > Database > Mysql Tutorial > How to get timestamp in MySQL

How to get timestamp in MySQL

WBOY
Release: 2023-06-03 13:40:07
forward
1200 people have browsed it

UNIX_TIMESTAMP(date): Get timestamp

SELECT UNIX_TIMESTAMP() 
SELECT UNIX_TIMESTAMP(‘2016-01-16') 
SELECT UNIX_TIMESTAMP(‘2016-01-16 23:59:59')
Copy after login
-> 1452937627
-> 1452873600
-> 1452959999
Copy after login

The above is the detailed content of How to get timestamp in MySQL. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template