Re: Sort and remove duplicates
- From: Ben Morrow <ben@xxxxxxxxxxxx>
- Date: Fri, 28 Sep 2007 16:32:40 +0100
Quoth JimJx <webmaster@xxxxxxxxxxxxxxxx>:
Hi everyone,
Got what should be an easy problem.
I have a db (MySQL) that I need to sort on the first field and remove
dups from.
For example, let's say I have Red,1,2,3,4,5 and Blue,1,2,3,4,5 and
Green,1,2,3,4,5 and Green,2,2,2,2,2
How can I come out with Blue,1,2,3,4,5;Green,1,2,3,4,5;Red,1,2,3,4,5??
I know that there is a simple way to do this but my brain is not
functioning right now.
perldoc DBI
perldoc -q duplicate
(possibly perldoc -f sort as well)
When you've had a go, post your code and we'll help you fix it.
Ben
.
- References:
- Sort and remove duplicates
- From: JimJx
- Sort and remove duplicates
- Prev by Date: Re: Perl compiler for MAC and Linux?
- Next by Date: Read attachment
- Previous by thread: Re: Sort and remove duplicates
- Next by thread: Re: Sort and remove duplicates
- Index(es):
Relevant Pages
|