联合索引(a,b) select a,b from c where a = xxx or b = xxx 索引会失效吗?

where a>1,b>1,怎么建立索引