Anrufen von Group_Concat () In der aktiven Datensätze von Codesigniter macht eine ungültige Abfrage [Duplikat]Php

PHP-Programmierer chatten hier
Anonymous
 Anrufen von Group_Concat () In der aktiven Datensätze von Codesigniter macht eine ungültige Abfrage [Duplikat]

Post by Anonymous »

Ich habe diesen Fehler
Sie haben einen Fehler in Ihrer SQL -Syntax. Überprüfen Sie das Handbuch, das Ihrer MySQL -Serverversion entspricht, damit die richtige Syntax in der Nähe verwendet werden kann.

Code: Select all

 ) ) AS name FROM (
ressourcen_details

Code: Select all

) JOIN 
Ort

Code: Select all

ON
reso_dtail_location` 'unter Zeile 3 [/b]
Code wie folgt

Code: Select all

$this->db->select('loc_country,CONCAT(s_name , ":", GROUP_CONCAT( DISTINCT dist_name
ORDER BY dist_name ASC
SEPARATOR "," ) ) AS name ');

$this->db->from('resource_details');
//join
$this->db->join('location','reso_dtail_location=loc_id');
$this->db->join('go_state', 'go_stste_id = loc_state', 'left');
$this->db->join('go_country', 'num = loc_country', 'left');
$this->db->join('go_dist', 'id = loc_district', 'left');
$this->db->where('loc_id !=1 AND loc_id !=2');
$this->db->group_by('country_name');
$query = $this->db->get();

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post