这样做可能不行,在创建数据库表时,创建索引。使用时,特别是查询,在where条件中,
把索引字段放在前面,这样,速度快。fo example :select id from table1 where id='...' and name='...' and ...
id 是索引字段。