dbTalk Databases Forums  

auto commit within an db2 sql file

comp.databases.theory comp.databases.theory


Discuss auto commit within an db2 sql file in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Toralf Förster
 
Posts: n/a

Default auto commit within an db2 sql file - 07-19-2010 , 08:15 AM






I'm wondering, whether the "nobody ...." comment in the following sql file
(which is called via "$>db2 -t -f sql") :

$>cat sql
-- BEGIN
delete from NEW
;
-- nobody should to read from NEW at this point
insert into NEW (select * from OLD)
;
--END

could be removed or if it is possible that somebody could read from table
NEW between the delete and insert statement.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.