Home > Database > Mysql Tutorial > mysql 生日揭示

mysql 生日揭示

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:15:08
Original
1430 people have browsed it

mysql 生日提醒 SELECT datediff(DATE_ADD("1989-01-02",INTERVAL TIMESTAMPDIFF(YEAR,"1989-01-02","2013-10-15") YEAR),NOW()) 先计算出生日离当前日期的年份差,在用生日+上年份差与当前时间做减法

mysql 生日提醒
SELECT   datediff(DATE_ADD("1989-01-02",INTERVAL TIMESTAMPDIFF(YEAR,"1989-01-02","2013-10-15") YEAR),NOW()) 
Copy after login

先计算出生日离当前日期的年份差,在用生日+上年份差与当前时间做减法
Related labels:
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