Answer the question
In order to leave comments, you need to log in
Is it possible to do multiple SELECT INTO?
Допустим есть:
DECLARE _balance INT(11);
DECLARE _balance2 INT(11);
SELECT `balance` INTO _balance FROM `users` WHERE `id` = `NEW`.`user_id` LIMIT 1;
_balance
from the table users
, but what if we need to take several columns at once? That is balance, balance2
SELECT `balance` INTO _balance, `balance2` INTO _balance2 FROM `users` WHERE `id` = `NEW`.`user_id` LIMIT 1;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question