Alex, 

I believe you'll find that MySQL does not support subselects.  This is
why you're getting the error message.  I suggest you consult the SELECT
syntax manual page (http://www.mysql.com/doc/S/E/SELECT.html) to see
what you can do with selects.  

You could try to convert this into a join, or break the operation into
your application.

Eric Mayers
Software Engineer I
Captus Networks

> -----Original Message-----
> From: Alex Speed [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 18, 2002 4:13 PM
> To: [EMAIL PROTECTED]
> Subject: SubSelect Problem
> 
> 
> SELECT textid, title, description from structure where textid 
> in (select
> subtopicid from subtopic where topicid='Top');
> 
> 
> this gives an error at the opening bracket.. I am assuming that mysql
> realises that
> 
> structure.textid=subtopic.subtopicid
> 
> ...any ideas on getting this working?
> 
> thanks for any help!
> 
> Alex
> 
> 
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail 
> <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> 
> 

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to