Posted on 2010-05-13 23:00
Prayer 閱讀(7895)
評(píng)論(0) 編輯 收藏 引用 所屬分類:
DB2
文檔講此二者皆用于temporary table,
delete rows用于事務(wù)相關(guān),也就在事務(wù)結(jié)束后truncate data in the temporary table.
preserve rows表示在會(huì)話結(jié)束后清除臨時(shí)表的數(shù)據(jù)
前者在事務(wù)提交后數(shù)據(jù)就已經(jīng)清除了.
后者在會(huì)話中止時(shí)或者導(dǎo)常退出時(shí)數(shù)據(jù)都會(huì)被清除掉.