Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple SQL query not working with delimiter on DBeaver

I can't execute MySQL statement when using delimiter (default ';'). I mean, when I run query like:

select * from mdw.dim_date dd limit 10;
select * from mdw.dim_order do limit 5;

I've got such error:

SQL Error [1064] [42000]: 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 'select * from mdw.dim_order do limit 5' at line 2

I don't want to execute this per Alt+X (I am using Dbeaver) as I want to put query into pentaho. I need to execute around 50 deletes, so I don't want to divide it on 50 SQL scripts.

I am using MySQL (version: 5.6.36-82.0).

like image 876
user14261502 Avatar asked Sep 05 '25 03:09

user14261502


1 Answers

You need to click on "Execute Script" option on DBeaver

enter image description here

If you click the play button, It will show you that error.

like image 128
Omar Alvarado Avatar answered Sep 07 '25 22:09

Omar Alvarado