mysql doesn't support subselects.

Jeff Levy
Software Design
Meta-Craft Creations

On Fri, 30 Mar 2001, Ramasamy Palaniappan wrote:

> Sir,
>
> created the following tables as primary and secondary
>
> primary : partycode(primary key),partyname
>
> secondary : partycode(references to primary),companyname
>
> select partycode,companyname from secondary where partycode=(select
> partycode from primary where partyname="xxxx");
>
> as per mysql - the above query returns the syntax error.
>
> please send the correct syntax and also the below query
>
> select partycode,companyname from secondary where partycode='select
> partycode from primary where partyname="xxxx"';
>
> if we try to execute the above code, it returns an empty set even if the
> values are there in the table.
>
> I am expecting the reply sir.
>
> regards
>
> palani
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> ---------------------------------------------------------------------
> 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