Re: MySQL "DISTINCT" query

From: Date: Wed, 21 Mar 2001 21:41:15 +0000
Subject: Re: MySQL "DISTINCT" query
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45000@lists.php.net to get a copy of this message
select distinct * from mytable is functioning just as it should what the answer is not group by try pleas to explain better what do you want almir "Jared Howard" <webbie@deanox.com> schrieb im Newsbeitrag news:3.0.6.32.20010321110448.00a64b40@server.deanox.com... > I need to retrive all column information from a DISTINCT query. But so > far, I only can get one column to show by using this: > > SELECT DISTINCT my_column FROM my_table; > > which then gives me a list of my_column information and is correct, but I > need all information from all columns. Querying this: > > SELECT DISTINCT my_column, my_column2, my_column3, my_column4 FROM my_table; > > was my guess at it, but doesn't work how I'd like. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#45000) next »