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
declare Regione int; set Regione=(select id from users where id=1) ; select Regione ;