Home > Database > Mysql Tutorial > select-Mysql连表查询怎样加锁

select-Mysql连表查询怎样加锁

WBOY
Release: 2016-06-06 09:43:47
Original
1518 people have browsed it

selectmysql锁加锁

select ...
from a
left join b on a.id.=b.id
where .......
for update

mysql 中有没有这样的用法?连表查询的时候,能够锁住主表的满足条件的几条记录?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template