请问后台按年份搜索部分应该怎么写 迅睿框架 更新 2021-03-12 22:27:50 菜鸟一枚 请问后台按年份搜索where部分应该怎么写。。\Phpcmf\Service::M()->db->table('dr_1_news_index')->where(dr_date(inputtime,"Y"),2021)->countAll();
\Phpcmf\Service::M()->db->table(SITE_ID.'_news_index')->where('DATE_FORMAT(FROM_UNIXTIME(inputtime),’%Y’)="2012"')->countAll();