select * from tblebayorder tord inner join tblebaycustomer tcust on tord.fcustid=tcust.fcustid where tord.fenterdate>='2010-05-04' and tord.fenterdate<='2010-05-05' and tord.fischarge=false and fstatus='UUU' limit 1 offset 0今天运行上面的SQL,两个表的记录条数分别是20多和10多万,运行时间高达20~30多秒。
主管叫我建立下索引提升速度,不过我没建立过索引,大虾能给个指点吗?谢谢了!