how to store the query result in a variable sql
snippet in sql

how to store the query result in a variable sql

user7654

SET @anyVariableName = ( yourQuery);