How to declare a variable in mysql, so that my second query can use it?
I would like to write something like:
SET start = 1; SET finish = 10; SELECT
Use set or select
SET @counter := 100; SELECT @variable_name := value;
example :
SELECT @price := MAX(product.price) FROM product