所以我有一个声明:
$r = mysql_query("Select type from boats where type like '%speed%'");
然后我可以将构造的资源应用于另一个查询吗?
$r2 = mysql_query("select * from assets where type in ".$r);
我正在尝试做类似的事情
select * from assets where type in (select type from boats where type like '%speed%')