Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dealing with semi colons

 
Steve Wood
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Cheers,

Steve
 
Dave Salter
Ranch Hand
Posts: 293
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you using semi-colons. In JDBC you don't need to end statements with them.
 
Steve Wood
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Steve
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic