mysql关于select where in的效率

不少大牛公司建议select where in中不要超过200,有的说不要超过500. 那么问题来了,使用子查询的时候若是结果级超过了500呢。 今天作了个测试web 下面是测试结果,分别是两个语句查询10次所用的时间 select * from cp_bill_info where id in(select id from cp_bill_info where id< 501)svg 第*次查询
相关文章
相关标签/搜索