RE: [PHP] Comparing multiple Mysql tables to find duplicates
| From: | Mike Brum | Date: | Fri, 30 Jan 2004 17:53:54 +0000 |
| Subject: | RE: [PHP] Comparing multiple Mysql tables to find duplicates | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-176371@lists.php.net to get a copy of this message | ||
>My first thought was to load the output from the tables into an array and
they use a foreach and
>in_array to create a list of dups, but I wanted to see if there was an
easier way.
--
If you're not using MySQL >4, then yeah, that's probably the best way.
Just realize that this isn't going to be the fastest script in the world. If
it's a one-off or very infrequently run script, then that's not a big deal.
-M