select ...from aleft join b on a.id.=b.idwhere .......for update
mysql 中有没有这样的用法?连表查询的时候,能够锁住主表的满足条件的几条记录?
写存储过程还行 直接写应该没有
这个文章说的很详细哦
https://www.universesun.cn/shows/19/44.html