select top 12 a.seq, a.ctime, a.title, a.code, a.et, b.name as author, c.name as forumname from t_content a,t_user b,t_forum c where a.author in (1,4) and a.checked='0' and a.author = b.seq and a.forumseq = c.seq order by publishtime desc1.像这种查询连接了 a表,b表,c表.... 那么我比如在 t_content表 的author和checked还有forumseq字段上,建立索引的话 是建立三个单个索引呢 还是把三个字段都带上,就是联合索引这种(author,checked,dorumseq)。
2.还有个问题是,不同的语句中条件里有一个表的多个字段的话 ,索引怎么加,一一加上,还是联合索引的写法?