View Single Post
  #2  
Old 03-08-2012, 01:53 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
My understanding of it is:

BEGIN;
.. a bunch of statements, that should all fail if one doesn't go through ..
COMMIT;

After reading: http://sqlite.org/lang_transaction.html

It leads me to believe if u pass a formatted SQL query that contains 10 SQL statements it will automatically BEGIN and COMMIT for you. However if you do something like..

PHP Code:
sql("BEGIN");
sql("UPDATE stuff");
sql("UPDATE stuff");
sql("COMMIT"); 
You might have to use it, really depends how it's implemented behind-the-scenes.
__________________
Quote:

Last edited by fowlplay4; 03-08-2012 at 02:08 AM..
Reply With Quote