List:General Discussion« Previous MessageNext Message »
From:Jocelyn Fournier Date:May 22 2002 5:26pm
Subject:Re: Union does not work
View as plain text  
Hi,

Perhaps try to remove the brackets ?
SELECT location FROM visiExPr where location=1  UNION SELECT location FROM
visiExPr where location=0;

(I assume you're using MySQL 4.0.x ?)

Regards,
  Jocelyn Fournier

----- Original Message -----
From: "Dan Liu" <dan.liu@stripped>
To: ">" <<mysql@stripped>
Sent: Wednesday, May 22, 2002 5:57 PM
Subject: Union does not work


Hi,
Could anybody tell me why the following query does not work?
SELECT location FROM visiExPr where location=1  union (SELECT location FROM
visiExPr where location=0);
Thanks!

Dan


---------------------------------------------------------------------
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 <mysql-thread109854@stripped>
To unsubscribe, e-mail
<mysql-unsubscribe-joc=presence-pc.com@stripped>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php





Thread
Union does not workDan Liu22 May
  • RE: Union does not workGurhan Ozen22 May
    • RE: Union does not workSam Masiello22 May
  • Re: Union does not workVictoria Reznichenko22 May
  • Re: Union does not workJocelyn Fournier22 May
RE: Union does not workGurhan Ozen22 May