Re: SQL field problem
| From: | Martin Clifford | Date: | Wed, 10 Jul 2002 17:55:03 +0000 |
| Subject: | Re: SQL field problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-106900@lists.php.net to get a copy of this message | ||
SELECT DISTINCT kat FROM tablename; should work.
Martin
>>> <mail@struempf.com> 07/10/02 01:40PM >>>
Hello
I have a problem with mysql.I create a table with a field "kat".In this field are entries
like this :
Light
Dark
Dark
Light
Robot
Find
Dark
Light
You see that all entries are not unique.So i want to list as output all entries but only once.If the
word "Dark" is in the table 6 times php should output dark only 1 time.
How should i solve this problem ?
Thanks!
chris