SQL优化
select id from t where num=10 or Name = 'admin'select id from t where num = 10 union all select id from t where Name = 'admin'select num from a where num in(select num from b)select num from a where exists(select 1 from b where num=a.num)select count(*) from tableName
select a.* from 表1 a, (select id from 表1 where 条件 limit 100000,20) b where a.id=b.id; #定位id段,再进行连接查询
Last updated