beginTransaction
loop -> for / foreach / while
exec
commit