MySql - concat-Funktion in Abfrage mit left outer join

Ich verstehe es nicht. Ich habe versucht:

SELECT
table1.name, CONCAT( country,  '.', id ) AS table1.code,
table2.name
FROM tabel1
LEFT OUTER JOIN
table2 ON ( table1.code = table2.code )

Muss ich kombinieren country und id zu country.id weil table2.code hat dieses schema.

Vielen Dank im Voraus.

Was ist das problem? Sind Sie immer null?
Haben Sie bemerkt, das Sie eingegeben haben FROM tabel1 eher als table2?

InformationsquelleAutor Bob | 2013-03-09

Schreibe einen Kommentar