select * from table where field1 = xx and field2 = xx and field 5 <> xx ...group by fieldn, 當我的where 很複雜時, 我要如何去設索引?我甚至連where 後面的field數目都不固定,但是group by 後面的field則是就只有幾種. 只將有可能group的欄位做索引可以提升效能嗎?
arrow
arrow
    全站熱搜

    vbqa 發表在 痞客邦 留言(1) 人氣()