how to put value in variable mysql
snippet in sql

how to create a variable in mysql

user391

-- MySQL

SET @variable_name := value;

how to put value in variable mysql

user1430

SET variable = (SELECT SUM(tax) FROM taxable_transactions);