userimage

How to set a variable before executing a query in mysql database

How to set a variable before executing a query in mysql database. i want to set a variable before executing a select query.

userimage

You can use below way:


set @setV := 0;

your select query.


Answer is