Multi-Statement execution behaves differently between MySQL / HTTP #1118
pavelnemirovsky
started this conversation in
General
Replies: 2 comments 1 reply
-
Not sure that first statement is really 'multistatement'. $ mysql -h0 -P9315
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 6.0.3 DEADBEEF@220512 devmode developer version
Copyright (c) 2000, 2023, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> select 1; select 2;
+------+
| 1 |
+------+
| 1 |
+------+
1 row in set (0.00 sec)
+------+
| 2 |
+------+
| 2 |
+------+
1 row in set (0.00 sec)
mysql> delimiter '|';
mysql> select 1; select 2;|
ERROR 1064 (42000): (P01): syntax error, unexpected SELECT, expecting $end near 'select 2;' |
Beta Was this translation helpful? Give feedback.
0 replies
-
Multi-queries is not working for queries like For example:
|
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
-
Guys,
Can you explain how to execute multi-statement via HTTP interface?
But via HTTP I am getting an error:
Response:
It looks like it should work according to the documentation described in here
Beta Was this translation helpful? Give feedback.
All reactions