Jump to content

Inno DB storage engine


kurt.santo

Recommended Posts

No - transactions are a type of database operation by which a series of queries are "buffered" before execution and so do not affect the database's data itself, before you COMMIT and actually make the changes. So, if you make a mistake you can go back without wrecking the database. For a more technical explanation http://en.wikipedia.org/wiki/Database_transaction.

BEGIN WORK --begin a transactionUPDATEDELETE --oops bad queryROLLBACK --operations are rolled back painlessly, no changes are made, transaction endsBEGIN WORK --(again)UPDATECOMMIT --changes are actually made to DB, transaction ends

Link to comment
Share on other sites

No - transactions are a type of database operation by which a series of queries are "buffered" before execution and so do not affect the database's data itself, before you COMMIT and actually make the changes. So, if you make a mistake you can go back without wrecking the database. For a more technical explanation http://en.wikipedia.org/wiki/Database_transaction.
BEGIN WORK --begin a transactionUPDATEDELETE --oops bad queryROLLBACK --operations are rolled back painlessly, no changes are made, transaction endsBEGIN WORK --(again)UPDATECOMMIT --changes are actually made to DB, transaction ends

Understood! Thanks for the clarification. Will also have a read...Kurt
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...