I have a query that works perfectly in PHPMyAdmin:
SET @row_number=0;
SELECT * FROM blah blah @row_number blah blah;
However, when I put this into Node.JS, I can't use a simple con.query("SET @row_number=0; SELECT * FROM blah blah @row_number blah blah;")
because there's technically 2 queries there. So I tried doing:
con.query("SET @row_number=0")
con.query("SELECT * FROM blah blah @row_number blah blah")
However, this treats it as if the first query isn't even there. How can I combine these queries into one query? Or, is there any other workaround?