Home > Database > Mysql Tutorial > How to use the TO_DAYS function in MySQL

How to use the TO_DAYS function in MySQL

WBOY
Release: 2023-05-28 14:10:06
forward
1356 people have browsed it

TO_DAYS(date)

SELECT TO_DAYS(‘2016-01-16') 
SELECT TO_DAYS(‘20160116') 
SELECT TO_DAYS(‘160116')
Copy after login
-> 736344
-> 736344
-> 736344
Copy after login

Returns the total number of days from year 0 to date

The above is the detailed content of How to use the TO_DAYS function 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