Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[???] MyISAM LOCK TABLES - affects other tables

Status
Not open for further replies.

baden

Programmer
Feb 6, 2002
125
US
MySQL LOCK TABLES <table name> affects other tables if the thread originating
the function does not issue an &quot;UNLOCK TABLES&quot; call. Shouldn't it only
affect the table the lock is called on?
ie: If there is a script error before UNLOCK TABLES can be called, all
other calls to the DB will return an error indicating the table being
accessed was not locked with &quot;LOCK TABLES&quot;.

This method is used instead of using transactions, as it is supposed to be
quicker with MyISAM tables.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top