mysql - How to lock a single row -


i have user table field lastusedecnumber.

i need access , increment lastusedecnumber.

during accessing time need lock particular user row (not entire table).

how do this?

the table type myisam.

mysql uses table-level locking myisam tables. if can, switch innodb row-level locking.

here's link mysql site describing locks set sql statements innodb tables. http://dev.mysql.com/doc/refman/5.0/en/innodb-locks-set.html


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -