新手请教 MySQL 的 where in 语句的优化
select id from 表 A where id in (select id from 表 B where id=$id) ORDER BY time DESC limit 0,50
虽然能用
但是很慢
请教下还可以怎么写才能快些
select id from 表 A where id in (select id from 表 B where id=$id) ORDER BY time DESC limit 0,50
虽然能用
但是很慢
请教下还可以怎么写才能快些