File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and the fly likes Dealing with semi colons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Dealing with semi colons" Watch "Dealing with semi colons" New topic

Dealing with semi colons

Steve Wood
Ranch Hand

Joined: Jan 08, 2003
Posts: 137
Hi guys,

How do you deal with semi-colons in JDBC - we put them in our queries and Oracle doesn't seem to like them. I'm concerned that Oracle might not like them, but other databases need them.

Any advice?


Dave Salter
Ranch Hand

Joined: Jul 20, 2005
Posts: 292

How are you using semi-colons. In JDBC you don't need to end statements with them.
Steve Wood
Ranch Hand

Joined: Jan 08, 2003
Posts: 137
Great thanks - I wasn't sure if they were needed for some database JDBC drivers. We are using them at the end of the statement.

I agree. Here's the link:
subject: Dealing with semi colons
Similar Threads
Regarding compilation of a servlet in book HFSJ on page 81
For loop syntax error
Here i am again with if/else statement now
Help for JavaScript in Struts 1