V
V
Vanik Khachatryan2018-04-04 14:31:57
MySQL
Vanik Khachatryan, 2018-04-04 14:31:57

Why does the trigger throw an error?

5ac4b77bd0bb5891470691.png
The goal was that when a new entry was added to tickets, buy_tickets in the slots table would increase by 1.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lazy @BojackHorseman MySQL, 2018-04-04
@VaniXac

because `tickets` is not known in the request context, NEW should be used

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question