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