|
我正在用dilicms做个小东西,我这样用的时候报错,不知道怎么回事:
return $this->db->select('did,name,code,pid,path,concat(path,'-',did) as truepath')->order_by('truepath')->get($this->db->dbprefix('department'))->result();
如果写sql是可以的:
$sql = "select did,name,code,pid,path,concat(path,'-',did) as truepath from {$this->db->dbprefix('department')} order by truepath ASC";
表里没有truepath这个字段的,请问怎么回事?谢
|
|