SQL優化的一些策略

**1、一些常見的SQL實踐mysql (1)負向條件查詢不能使用索引web select * from order where status!=0 and stauts!=1sql not in/not exists都不是好習慣數據庫 能夠優化爲in查詢:緩存 select * from order where status in(2,3)svg (2)前導模糊查詢不能使用索引性能 select
相關文章
相關標籤/搜索