+ 1
How we declare temporary variable in MySQL ..
Declaration of temporary variable..
1 Antwort
+ 5
SET @anyVariableName=(SELECT yourColumnName FROM yourTableName WHERE yourCondition);
See this link
https://www.tutorialspoint.com/mysql-temporary-variable-assignment