• 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
Sheriff
Posts: 36002
422
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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!