Quantcast
Channel: ITPUB论坛-专业的IT技术社区
Viewing all articles
Browse latest Browse all 18583

请教个索引问题

$
0
0
现在有x表中有a,b,c,d,共4列,d列是排序列 现在的sql是这样的select a,b,c,d from x where a=1 and b=2 and c=3 order by d desc a与b是必须的字段,而c是可有可无的 我已经在表中建立了abcd的一个联合索引,这个时候是走这个索引的,但是,select a,b,c,d from ...

Viewing all articles
Browse latest Browse all 18583

Trending Articles