How to lock a single row

MySQL uses only table-level locking from MyISAM tables. If you can, switch to InnoDB for row-level locking. Here’s a link to the MySQL site describing Locks set by SQL Statements for InnoDB tables. http://dev.mysql.com/doc/refman/5.0/en/innodb-locks-set.html

MyIsam engine transaction support

MyISAM effectively works in auto-commit mode (as it’s not a transactional engine), and it just ignores the commit/rollback. Actually storage engine is a different layer in the MySQL architecture, separated from the SQL parser, the SQL layer communicates to the storage engine with lower-level API, and that’s the reason there is a common SQL and … Read more

MySql: MyISAM vs. Inno DB! [closed]

The main difference is that InnoDB supports transactions while MyISAM does not. There are numerous other differences, however the common one’s i am aware of are: MyISAM has typically been considered faster at searching, but recent InnoDB improvements are removing this difference and improving high concurrency workload performance InnoDB support transactions whilst MyISAM does not … Read more

What’s the difference between MyISAM and InnoDB? [duplicate]

The main differences between InnoDB and MyISAM (“with respect to designing a table or database” you asked about) are support for “referential integrity” and “transactions”. We choose InnoDB if we need the database to enforce foreign key constraints or support transactions (i.e. changes made by two or more DML operations handled as single unit of … Read more