I am trying to run an INSERT
statement on table X each time I SELECT
any record from table Y is there anyway that I can accomplish that using MySQL only?
Something like triggers?
See Question&Answers more detail:osI am trying to run an INSERT
statement on table X each time I SELECT
any record from table Y is there anyway that I can accomplish that using MySQL only?
Something like triggers?
See Question&Answers more detail:osShort answer is No. Triggers are triggered with INSERT
, UPDATE
or DELETE
.
Possible solution for this. rather rare scenario:
SELECT
s you want on
table X.SELECT
on table
X.INSERT
or whatever).