Re: Mysql unique statement help...
| From: | RIVES Sergio | Date: | Tue, 02 Apr 2002 12:13:42 +0000 |
| Subject: | Re: Mysql unique statement help... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-91104@lists.php.net to get a copy of this message | ||
Hi,
if you want to select a unique threadid to be read, try the following
MySQL sentence :
SELECT DISTINCT threadid FROM tablename;
Hope it helps you
SR
Dhaval Desai a écrit :
> Hello,
>
> Well I have a field in Mysql Database called threadid.
> I have unique threadid's stored in this field. But the
> problem is that I have like 10 entries for each
> threadid. When I do a select statement for Mysql I
> want only unique threadid's to be read.
>
> How do I do that because I didn't find any function as
> unique() under Mysql.
>
> Could anybody help me out please.
>
> Thank You
> Best Regards,
> Dhaval Desai
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php