Hallo Beisamen!
Ich habe eine Frage zum Thema mysql Ich habe mehrere Tabellen die ich über eine SELECT Anfrage ansteuere.
Dort greife ich über LEFT JOIN auf verschieden Tabellen
LEFT JOIN data_text aa ON a.typ=1 AND aa.id_field=a.id
LEFT JOIN data_text bb ON a.typ=2 AND bb.id_field=a.id
LEFT JOIN data_calc bb ON a.typ=3 AND bb.id_field=a.id
Kann ich, es irgendwie so zusammenfassen
WENN ( a.typ=1 OR a.typ=2 )
LEFT JOIN data_text aa ON aa.id_field=a.id
SONST...
LEFT JOIN data_calc bb ON bb.id_field=a.id