Monday, July 4, 2011

CRUD Operation in iBatis

1. To return a single value in iBatis Use "queryForObject"

Eg: select userName from user where user_id=2;

2. To return a set of Values in iBatis use "queryForList"

Eg: select * from user

3.Update Query goes here

4. Delete query goes here

5. Insert query goes here

No comments:

Post a Comment