Thank you Thomas!

Sorry but I have a further couple of questions about the transaction
syntax...

1. If I use SELECT ... FOR UPDATE will this lock the table and start a
transaction until I COMMIT or ROLLBACK (assuming AUTOCOMMIT is off)?

2. Is the BEGIN TRANSACTION syntax documented anywhere?

Actually I am looking for some examples in H2 that use transactions,
including BEGIN TRANSACTION, COMMIT and ROLLBACK. I believe that it
should be of the form:

PREPARE COMMIT myTransaction

......do some things

if everything is fine....

COMMIT myTransaction

.... otherwise

ROLLBACK myTransaction

Thanks again for your help :-)

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to