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
相關文章
相關標籤/搜索