Jimit
Jimit

Reputation: 2259

MySQL Trigger With SELECT Statement

I want to make trigger that having SELECT Statement in it but that SELECT query returns more than one rows so, How can I handle that multiple rows in trigger and looping that rows in MySql?

Please Help me. :Jimit

Upvotes: 2

Views: 1065

Answers (1)

James McNellis
James McNellis

Reputation: 354969

It depends on exactly what you want to do with the results of the SELECT, but the most general approach would be to use a cursor.

Upvotes: 4

Related Questions