MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old April 10th, 2004, 12:09 AM
crudesys crudesys is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: California
Posts: 25 crudesys User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question MySQL Syntax Error with Subquery

SELECT fldForumID
FROM tblForumTitle
WHERE fldForumID =

( SELECT DISTINCT fldForumID FROM tblForumMessage LIMIT 1 )
right syntax to use near 'SELECT DISTINCT fldForumID FROM tblForumMessage LIMIT 1 )


i dont know why i'm getting the syntax error.

anyone help? thanks

Reply With Quote
  #2  
Old August 23rd, 2004, 01:59 PM
magrook magrook is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 magrook User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by crudesys
SELECT fldForumID
FROM tblForumTitle
WHERE fldForumID =

( SELECT DISTINCT fldForumID FROM tblForumMessage LIMIT 1 )
right syntax to use near 'SELECT DISTINCT fldForumID FROM tblForumMessage LIMIT 1 )


i dont know why i'm getting the syntax error.

anyone help? thanks

Check to see if your version of MySQL is 4.1 or higher. If not, you cannot execute subqueries, as versions prior to this do not support subqueries (as I just found out after several hours of attempting subqueries with my version of 4.0.13!!). Hope this helps.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > MySQL Syntax Error with Subquery


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway