$sql="update table set field= concat_ws('\\n', field, 'some value') where id=$id"; $this->db->query($sql);