Sign up ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

How do I get how many rows are inserted after executing an INSERT statement? I'm using Oracle 11r2 with MyBatis in Java.

share|improve this question

1 Answer 1

You can assign SQL%ROWCOUNT to a variable after inserting.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.