SQL操作應(yīng)用——負(fù)向條件查詢不能使用索引
提問(wèn)人:ylm發(fā)布時(shí)間:2020-09-28
select * from order where status!=0 and stauts!=1
not in/not exists都不是好習(xí)慣
可以優(yōu)化為in查詢:
select * from order where status in(2,3)
繼續(xù)查找其他問(wèn)題的答案?
相關(guān)視頻回答
select * from order where status!=0 and stauts!=1
not in/not exists都不是好習(xí)慣
可以優(yōu)化為in查詢:
select * from order where status in(2,3)
點(diǎn)擊加載更多評(píng)論>>