Home  >  Article  >  Database  >  常用的MySQL日期时间函数(1/2)

常用的MySQL日期时间函数(1/2)

WBOY
WBOYOriginal
2016-06-07 17:52:31940browse

对于每个类型拥有的值范围以及并且指定日期何时间值的有效格式的描述见7.3.6 日期和时间类型,这里是一个使用日期函数的例子。下面的查询选择了所有记录,其date_col的值是在最后30天以内:

Statement:
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