Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Oracle Query is not running

 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.sql.BatchUpdateException: ORA-00900: invalid SQL statement

When am running the following statement in oracle SQL then its working fine


but with JDBC throws
java.sql.BatchUpdateException: ORA-00900: invalid SQL statement

My Code:
===========


Thanks in anticipation>
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you print out that query string it looks like "mergeinto expertise t1using". You can see the missing spaces in my example. Oracle can't infer the tokens since the spaces aren't there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic