dr.colossos: SQL Abfrage in PHP mit AS

Beitrag lesen

Hi,

"test" ist ja nix anderes als das status Feld, oder?

Evtl. so?

SELECT *, (SELECT status FROM tabelle2 WHERE tabelle1.processingStatus = tabelle2.id AND status LIKE 'irgend eine Postvariable') AS test
FROM tabelle1
WHERE Feld1 LIKE 'irgend eine Postvariable'

Die Semantik der Abfrage wird mir nicht ganz klar, auch hab ich kein MySQL.