So i have a statement:
$r = mysql_query("Select type from boats where type like '%speed%'");
can I then apply the constructed resource to another query?
$r2 = mysql_query("select * from assets where type in ".$r);
I am trying to do something similar to
select * from assets where type in (select type from boats where type like '%speed%')
No, you can’t do this.
But you could combine the sql.
Or instead of subquery, you could use a join.