![]() |
![]() ![]() |
![]() |
-Gość- |
![]()
Post
#1
|
Goście ![]() |
Witam, mam dwie tabelki:
items z kolumnami: id oraz basePower users_items z kolumnami: itemId oraz itemPower Chciałbym zrobić tak trigger, który kiedy dla tabeli users_items będzie wywoływane zapytanie insert, on będzie ustawiać w nowym wpisie wartość kolumny itemPower na wartość kolumny basePower z tabeli items dla id = itemId nowego wpisu |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 1 421 Pomógł: 310 Dołączył: 18.04.2012 Ostrzeżenie: (0%) ![]() ![]() |
Jaki DBMS?
|
|
|
-Gość- |
![]()
Post
#3
|
Goście ![]() |
MySQL
|
|
|
![]()
Post
#4
|
|
Grupa: Zarejestrowani Postów: 1 421 Pomógł: 310 Dołączył: 18.04.2012 Ostrzeżenie: (0%) ![]() ![]() |
|
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 18.06.2025 - 15:20 |