|
Hello! I am wondering if it's possible to use variables in the mysql2 query method? I can successfully run this in MySQL Workbench: set @custNum = 103;
SELECT * FROM customers WHERE customerNumber = @custNum;but when run via Related discussion: Budibase/budibase#7775 |
Answered by
sidorares
Sep 15, 2022
Replies: 2 comments 1 reply
|
do you have |
1 reply
Answer selected by
melohagan
|
Some unit tests are using variables in the query, example: |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
do you have
multipleStatementsconnection flag enabled? See https://github.com/mysqljs/mysql#multiple-statement-queriesAt a protocol level there is nothing special in variables, query with variable in it is sent using the same COM_QUERY command, its just part of a query text