Replies: 1 comment 1 reply
-
You can set the user-defined variables at the start of your SQL query using a single SET statement and separate each variable assignment with a comma. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a MySql SQL that needs to set some user variables initially, but I can't find the right way to achieve it. I can run this SQL directly in the MySql client. Below are some code pieces.
panicked at 'called
Result::unwrap()on an
Errvalue: Database(MySqlDatabaseError { code: Some("42000"), number: 1064, message: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'set @msg_id='';\n select message_id,reaction,user_id,score,created_at from' at line 2" })'
Beta Was this translation helpful? Give feedback.
All reactions