D
D
dkrylov2018-12-27 11:46:57
MySQL
dkrylov, 2018-12-27 11:46:57

How to set value in table by event in MYSQL?

There is a column - `status` (boolean) in the `account` table
How to make `status` set to false when deleting a record from the `account_status` table
Tell me, how are such things written in general?
Triggers? How can this be used in yii2 migrations?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2018-12-27
@tsklab

Triggers?
Yes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question