Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

commit

Former Member
0 Likes
498

please tell me

if i place commit in select and endselect . what happens?

regards

satish

1 ACCEPTED SOLUTION
Read only

former_member156446
Active Contributor
0 Likes
478

comit work will complete the update process which you did in a LUW.. if you dont have any LUW.. by the time comit work is hit.. nothing happens...

search in forums for LUW...

4 REPLIES 4
Read only

former_member156446
Active Contributor
0 Likes
479

comit work will complete the update process which you did in a LUW.. if you dont have any LUW.. by the time comit work is hit.. nothing happens...

search in forums for LUW...

Read only

0 Likes
478

Jay - don't really understand your answer.

But if you put a COMMIT inside SELECT/ENDSELECT, you will get a run time error.

Rob

Read only

0 Likes
478

why are we getting error?

Read only

kamesh_g
Contributor
0 Likes
478

HI

if you use commit in select and endselect .

Every time you are committing the database such that updation to database is over .

so if we gone thru select statement for 20 times you are committing the database 20 times .

means more pressure u r putting on DATABASE.

in such a way if we have gone through the select for more than 10 times or 10000 times in production ( AS select end select is like a LOOP) we are hitting database such many times .

so we must nit use commit in with in select to protect database from max hittings.