Home > Database > Mysql Tutorial > mysql 查询指定日期时间内容sql查询语句

mysql 查询指定日期时间内容sql查询语句

WBOY
Release: 2016-06-07 17:49:45
Original
2055 people have browsed it

如果是月份就是当前的月减去你要统计的时间如我要查询数据库中从今天起往前三个月的所有记录,我们的语句如下:mktime(date(\'h\'),date(\'i\'),date(\'s\'),date(\'m\')-3,date(\'d\'),date(\'y\'));七天内的:mktime(date(\'h\'),date(\'i\'),date(\'s\'),dat

source:php.cn
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