ibatis insert or update?

I've been looking for an example how this should be handled but found nothing.
I have some records I want to Insert into a table, but if the PKs for these records already exist, I want iBatis to do an update instead.
How is this usually done with iBatis?
Who is Participating?
blackfrancis75Connect With a Mentor Author Commented:
pull your data into a temp table, then: insert into realtable select * from temp_table where id not in (select id from realtable);
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.