![]() |
![]() ![]() |
![]() |
![]() ![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 58 Pomógł: 0 Dołączył: 25.03.2018 Ostrzeżenie: (0%) ![]() ![]() |
stworzyłem jeden trigger w phpmyadmin do skopiowania danych do innej tabeli w przypadku INSERT, drugi w przypadku UPDATE, ale przy trzecim DELETE mam błąd i nie rozumiem dlaczego.
![]() |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 1 240 Pomógł: 278 Dołączył: 11.03.2008 Ostrzeżenie: (0%) ![]() ![]() |
Będziesz tak miły i podzielisz się z nami treścią tego błędu?
-------------------- |
|
|
![]() ![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 58 Pomógł: 0 Dołączył: 25.03.2018 Ostrzeżenie: (0%) ![]() ![]() |
no raczej, przepraszam:)
One or more errors have occured while processing your request: The following query has failed. |
|
|
![]()
Post
#4
|
|
![]() Grupa: Moderatorzy Postów: 36 557 Pomógł: 6315 Dołączył: 27.12.2004 ![]() |
Moze dlatego ze DELETE nie ma NEW? Co tam niby ma byc nowego?
-------------------- "Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista "Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer |
|
|
![]()
Post
#5
|
|
Grupa: Zarejestrowani Postów: 6 380 Pomógł: 1116 Dołączył: 30.08.2006 Ostrzeżenie: (0%) ![]() ![]() |
https://dev.mysql.com/doc/refman/8.0/en/trigger-syntax.html
Kod In an INSERT trigger, only NEW.col_name can be used; there is no old row. In a DELETE trigger, only OLD.col_name can be used; there is no new row. In an UPDATE trigger, you can use OLD.col_name to refer to the columns of a row before it is updated and NEW.col_name to refer to the columns of the row after it is updated.
-------------------- |
|
|
![]() ![]() |
![]() |
Aktualny czas: 21.08.2025 - 15:26 |