Skip to content

Using variables in a query #1636

Answered by sidorares
melohagan asked this question in Q&A
Discussion options

You must be logged in to vote

do you have multipleStatements connection flag enabled? See https://github.com/mysqljs/mysql#multiple-statement-queries
At 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

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@melohagan
Comment options

Answer selected by melohagan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants