If it is in a multi-user environment, this is undesirable. Any other
thoughts?

I was thinking of doing arrays in PHP and then using array_intersect PHP
function, but would prefer a cleaner way.

-----Original Message-----
From: Aleksandar Bradaric [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 1:08 AM
To: Thomas Moore
Cc: MySQL List
Subject: Re: alternative to intersect in mySQL


Hi,

> I know that intersect does not work yet with mySQL. I am selecting data
from
> two tables. Results of one select
> would be 1, 2, 3, 4 . Results of other select 1, 2.

> Want to print 1, 2.

> Are there any nice workarounds using PHP or SQL?

You  could  use a temporary table to store the result of the
first  query  and  join the second query with it afterwards.
Nice enough? :)


Regards,
Sasa

»mysql, select, database«


---------------------------------------------------------------------
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