prajak, Friday, April 05, 2002, 7:50:44 AM, you wrote: pp> mysql> select distinct(nexthop) ip from NameRoute pp> where OwnerIP='10.0.1.1' and pp> nexthop not in (select ip from NameIP where pp> OwnerIP='10.0.1.1'); pp> ERROR 1064: You have an error in your SQL syntax near pp> 'select ip from NameIP whe pp> re OwnerIP='10.0.1.1')' at line 1
Sub-selects is not currently supported in MySQL. How you can re-write your query, read at: http://www.mysql.com/doc/A/N/ANSI_diff_Sub-selects.html http://www.mysql.com/doc/J/O/JOIN.html -- For technical support contracts, goto https://order.mysql.com/ This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Victoria Reznichenko / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.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