Chinaunix's Archiver
论坛
›
Informix
› 求助高手: 数据库查询速度问题
lovejunjun
发表于 2008-04-21 22:04
求助高手: 数据库查询速度问题
有一张数据库表,大约五百万多条记录,唯一索引是客户号,索引已经建立好,但是进行查询时
select * from tablename where customerid='xxxxxxxxx',速度还是很慢。但在isql中给form相应的字段赋值,然后query,速度就很快,为什么呢?
wenlq
发表于 2008-04-22 07:33
试试update statistics for table tablename
lovejunjun
发表于 2008-04-22 20:44
试着做了,好使了,谢谢!
页:
[1]
查看完整版本:
求助高手: 数据库查询速度问题