select * from archives where date_format(FROM_UNIXTIME(pubdate),'%Y-%m-%d')=curdate() and writer='张三';
------解决方案--------------------
select * from archives where writer='张三' and pubdate between unix_timestamp(date(now)) and unix_timestamp(date(adddate(now(),1)));
------解决方案--------------------
select * from archives where writer='张三' and pubdate between unix_timestamp(date(now())) and unix_timestamp(date(adddate(now(),1)));
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