今天用medoo插件遇到个很奇怪的问题,字段用了Medoo::raw('FROM_UNIXTIME(<create_time>,"%Y-%d-%d %H:%i:%s")'),一直查询的数据为空,关键打印sql语句是对的,在数据库执行也可以,看源码,百度搞了半天,nnd ,Medoo::raw('FROM_UNIXTIME(<create_time>,\'%Y-%d-%d %H:%i:%s\')') 没想到要用单引号才行,双引号取不到数据,汗了
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!