![]() |
WTH is wrong with this MySql statement?
Code:
SELECT id FROM `table1` WHERE id NOT IN ( SELECT id FROM `table2` ) |
try `table1` without quotes, and `table2` without quotes too.
and fyi, u need a pretty new mysql version to use query with query.. but first u should try without the quote. |
You could try:
SELECT id FROM table1 LEFT JOIN table2 WHERE table2.id IS NULL |
Quote:
|
| All times are GMT -7. The time now is 07:21 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123