sql優化

 

explain select d1.id from 

doctor_share as d1 inner join 

 (select id from doctor_share

where check_status=1 and is_delete=0 

) as d2

on d1.id=d2.id 

where d1.type=1

order by id desc 

 

limit 0,20

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章