mysql 经典SQL语句

一、行读锁 select * from table where id =1 for update (悲观锁) update table set status=1 where status = 0 and order_id = xxx;(乐观锁) 二、千万级行数据分页优化读取 select * from table where id>=(select id from table order by i
相关文章
相关标签/搜索