有人可以告诉我如何使用 codeigniter 正确使用以下查询:
DATE_FORMAT(sr.dateCreated,'%m/%d/%Y @ %h:%i %p') AS dateCreated
我试过了:
public function viewSR($id) {
$this->db->select('sr.id
,sr.woid
,sr.description
,DATE_FORMAT(sr.dateCreated),'%m/%d/%Y @ %h:%i %p') AS dateCreated
,sr.startTime
,sr.endTime
,rt.name AS rateName');
$this->db->from('service_report sr');
任何帮助将不胜感激!