1

I user the java.sql.Statement.excecuteUpdate method to create a table and insert some values into the database through JDBC. However, it gives me MySQL syntax exceptions for no reason. I copied and pasted the same code into command prompt. it worked.

I'm wondering why it's doing that??

1
  • Can you provide the query and code you're using? Commented Jun 16, 2009 at 20:24

1 Answer 1

2

Guessing

You cannot do a query like: insert ...; insert ... ; only one query per method call

Sign up to request clarification or add additional context in comments.

1 Comment

is there an easy way to do a bunch of insert?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.