If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MySQL / PHPMYADMIN Help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-27-04, 11:23
mattmcb mattmcb is offline
Registered User
 
Join Date: Aug 2004
Posts: 4
MySQL / PHPMYADMIN Help

Does anyone know why when I try and run this query in PHPMYADMIN:

Code:
SELECT  * 
FROM products_to_categories
WHERE products_id NOT 
IN (SELECT products_id
FROM products)
I get this error:
Quote:
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT products_id
FROM products ) LIMIT 0, 30' at line 5
Reply With Quote
  #2 (permalink)  
Old 08-27-04, 17:16
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,410
Prior to V4.1 MySQL subselects are not supported
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On