Answers for "mysql select declare variable"

SQL
3

mysql declare variable

SET start = 1;
SET finish = 10;

SELECT * FROM places WHERE place BETWEEN start AND finish;
Posted by: Guest on September-12-2020
0

define a variable in mysql from select

SELECT salary INTO @variable1 FROM employee_info WHERE emp_id = 12345678 LIMIT 1;
SELECT salary, salary_group INTO @var1, @var2 FROM employee_info WHERE emp_id = 12345678;
Posted by: Guest on March-17-2020

Code answers related to "mysql select declare variable"

Code answers related to "SQL"

Browse Popular Code Answers by Language