Jump to content

[SOLVED] Workaround for subqueries?


MauricioSanRoman

Recommended Posts

Hello Guys,

I'm trying this all day with no result, aparently my mysql version don't accept subqueries, I read about using left joins to do a workaround, what I 'm trying to do without using a subquery is this statement:

SELECT * FROM t1 WHERE t1.id NOT IN (SELECT t2.id FROM t2 where t2.field = '$phpvariable');

Thanks and happy holidays!
Link to comment
https://forums.phpfreaks.com/topic/31741-solved-workaround-for-subqueries/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.