数据操作查询根据时间排序
数据库操作方法中,怎么根据时间排序来查询呢?文档里没有这部分:https://www.xunruicms.com/doc/419.html
\Phpcmf\Service::M()->table('dr_1_form_qian')
->where('uid', 1)
->orderBy('inputtime','DESC') // 这样会报错,正确的应该怎么写呢?
->getRow();
数据库操作方法中,怎么根据时间排序来查询呢?文档里没有这部分:https://www.xunruicms.com/doc/419.html
\Phpcmf\Service::M()->table('dr_1_form_qian')
->where('uid', 1)
->orderBy('inputtime','DESC') // 这样会报错,正确的应该怎么写呢?
->getRow();