Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [SQL] trigger błąd
-aldo-
post
Post #1





Goście







Witam.
Proszę o poradę, czemu powstaje błąd przy Tworzeniu tak prostego trigera:
  1. CREATE TRIGGER aaaaa before UPDATE ON text
  2. FOR EACH ROW
  3. BEGIN
  4. INSERT INTO log (stary) VALUES (OLD.tekst);
  5. END;


Dostaje komunikat:

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 '' at line 4
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 16.09.2025 - 22:30