Ok, danke schonmal.
Diese Meldung wäre schon mal weg ;-)
Allerdings mag es dennoch nicht so recht:
CREATE TRIGGER upd\_preisdatum
BEFORE UPDATE ON articles
FOR EACH ROW
IF @einkaufspreis != NEW.einkaufspreis THEN
SET NEW.preisdatum = NOW();
END IF;
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SET NEW.preisdatum = NOW()' at line 4
Ich habe das Gefühl, dass ich irgendwas bei der If-Schleife falsch mache...
aber ich komm´ einfach nicht drauf.