MySQL Forums
Forum List  »  MyISAM

Re: orderid with point of sale application
Posted by: Ingo Strüwing
Date: April 25, 2006 04:24AM

If you use InnoDB or BDB as the storage engine for the tables, you can combine both statements in a transaction. Then the row is implicitly locked until you commit.

If you use MyISAM, you need to lock the whole tables: LOCK TABLE restaurant WRITE, orders WRITE; <your statements here>; UNLOCK TABLES;

Regards

Ingo Strüwing, Senior Software Developer - Storage Engines
MySQL AB, www.mysql.com

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: orderid with point of sale application
1741
April 25, 2006 04:24AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.