Home > Database > Mysql Tutorial > mysql 日期相加减sql查询语句

mysql 日期相加减sql查询语句

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:49:49
Original
1253 people have browsed it

工作需要需要查询本月,本月来的数据进行排行,仔细一看数据库在数据库里保存的日期格式是2010-02-23 14:2:3这种类型的,这样我以为的按秒存在数据库的查询方法就不行了,在网上找到一款日期相加减sql函数 datediff(now,oldtime)。测试了一下完全可以用下面我

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
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template