Use concat function in codeigniter select query

$this->db->select(' *,CONCAT(coloumname,couloumname2) as alias_name',FALSE);
$this->db->from (tablename);
$this->db->where('columname',value);
$response=$this->db->get();
return $response->result();

Comments

  1. How to use concat function in codeigniter 4 with orm model?

    ReplyDelete

Post a Comment

Popular posts from this blog

Merge JS and CSS file to make your codeigniter website faster using CARABINER library