位置:首頁 > 軟件操作教程 > 數(shù)據(jù)分析 > SQL > 問題詳情

SQL操作應(yīng)用——負向條件查詢不能使用索引

提問人: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ù)查找其他問題的答案?

相關(guān)視頻回答
回復(fù)(0)
返回頂部