Home >Database >Mysql Tutorial >Mysql获取当前时间的前几天和字段中的时间进行比较_MySQL

Mysql获取当前时间的前几天和字段中的时间进行比较_MySQL

WBOY
WBOYOriginal
2016-06-01 13:02:311156browse

DELETE FROM zhongqiu WHERE caretatime

caretatime字段为时间字段
`caretatime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,



-14为14天以前

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