• Post Reply Bookmark Topic Watch Topic
  • New Topic

merge JDBCTemplate issue  RSS feed

 
Sehaj Virk
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to spring framework. so this is my first attempt. I have tried ,many examples but failed miserably.

So here is the thing.

My source and target is the same.what i want is to update the record if its in the Db otherwise insert.

i am using the following method. My insert query if working fine. But when i use MERGE. i am getting errors.








following is my log file



i feel there is a problem my MERGE SQL STATEMENT, i am looking for some help/guidance
 
M Khalid
Ranch Hand
Posts: 57
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct Syntax use:


You can refer the Core Ranch Page below for more incite.
Oracle/DB2 Merge Statement
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!