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

select-Mysql连表查询怎样加锁

WBOY
WBOYOriginal
2016-06-06 09:43:471470browse

selectmysql锁加锁

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

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

Statement:
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