1.查询
select * from `table` where `id`=1 and `name` in (2,3,4) and `age` in (select `age` from `table2` where 'sex`=1) group by `id` desc limit 10
本文共 197 字,大约阅读时间需要 1 分钟。
1.查询
select * from `table` where `id`=1 and `name` in (2,3,4) and `age` in (select `age` from `table2` where 'sex`=1) group by `id` desc limit 10
转载于:https://www.cnblogs.com/rockking/p/7525262.html