faqts : Computers : Databases : MySQL : General Information : Transactions and Concurrent Queries

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

18 of 23 people (78%) answered Yes
Recently 10 of 10 people (100%) answered Yes

Entry

Do I have to do anything in MySQL to prevent collisions between multiple inserts?
When do I need to lock tables for updating?

May 11th, 2000 17:07
Nathan Wallace, Jonathan Stimmel


As a general rule, no. MySQL insures that only one query can write to a
table at a time. If, however, you need to make changes to two or more
tables without the tables changing between queries, then you will need
to lock the tables you plan to access.