【发布时间】:2018-08-01 21:38:13
【问题描述】:
我正在使用 kohana 查询生成器来更改取消的日期格式,但它返回为空值。
查询
$result = DB::select('log_id',array(DB::expr("DATE_FORMAT('cancelled_date', '%Y-%m-%d %h:%i %p')"),'cancelled_date'),'drop_location')
->from(TBL_NAME)
->where('driver_id','=','15')
->execute()->as_array();
【问题讨论】:
-
你遇到了什么问题?
-
cancelled_date 字段返回为 'null'
标签: php mysql kohana query-builder kohana-orm