php中mysql的查询语句: a表中的查询结果作为b表查询的条件 这个select语句怎么写啊?

如题所述

select * from b where b表字段 in (select a表字段 from a)
其中in可根据需要用其他如like等替代
温馨提示:答案为网友推荐,仅供参考
第1个回答  2012-12-04
select * from b where id in (select id from a)
相似回答