Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7067755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:14:25+00:00 2026-05-28T05:14:25+00:00

I use the Eclipse SQL Editor (Eclipse Data Tool Platform 1.9.0) in STS 2.7.1

  • 0

I use the Eclipse SQL Editor (Eclipse Data Tool Platform 1.9.0) in STS 2.7.1 based on Eclipse 3.7. (Database is MySQL 5.5)

If I have the SQL Scrapbook (or any other file) and put some SQL DDL statements in it where every single statement is written on a single line ending with ; (that is the configured delimiter in eclipse) then I can execute all statements together (Execute All Ctrl+Alt+X). That works without problems, eclipse execute each statment as a single statement.

But if i have normal insert statements in the same format (each line/statement ending with ;) then executing all statements together fails. Eclipse seams to try to handle all the statements in one SQL statement. That fails and MySql report an syntax error.

INSERT INTO `folder` (`id`, `businessId`, `status`, `title`, `parent_Folder_fk`) VALUES(1, 1544565486, 'ACTIVE', 'Root', NULL);
INSERT INTO `folder` (`id`, `businessId`, `status`, `title`, `parent_Folder_fk`) VALUES(6, 1802811831392782301, 'ACTIVE', 'Ralphz', 1);
...

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 ‘INSERT INTO folder (id, businessId, status, title, parent_Folder_fk)’ at line 2

I can execute each line separate (Select the line and Excecute Selection Alt+X). So I guess there is no failure in the statements, but something is wrong with splitting the statements.

Where is my mistake?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:14:26+00:00Added an answer on May 28, 2026 at 5:14 am

    Found the cause of the problem and a solution.

    Execute all does not separate insert into statements properly along delimiters (works fine with other statements tho), and newer MySQL versions disallow multiple statements in a line, most likely to prevent SQL injections.

    I doubt the former can be easily fixed, however there is a configuration property of MySQL to allow multiline SQL statements. You just have to add “allowMultiQueries=true” to Data Source Explorer / properties of a data source / Driver Properties / Optional / Additional Properties.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use Eclipse 3.3 in my daily work, and have also used Eclipse 3.2
I don't use Eclipse as an IDE, and have no interest in doing so.
i use eclipse with lot of plug-ins and will have more than one windows
I use eclipse and the maven plugin. I have a big multi-module project (~6
I'm trying to use a MySQL database with EclipseLink using Netbeans but I keep
I am using Derby database with Java and Eclipse. I have a table which
I have a webapp written in PHP using a MySQL database backend. This question
Possible Duplicate: ClassNotFoundException com.mysql.jdbc.Driver I have included the mysql-connector-java-5.1.16-bin.jar into my Eclipse library, this
I use Eclipse and I wanted to use gtkmm in it. I have following
Do you have recommendations for a good PostgreSQL editor plugin for Eclipse? The PostgreSQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.