在表中建一个主键id,在count的时候 不要select count(*) from table_name 建议采用select count( id ) from table_name 这样应该会快很多;