MySQL Forums
Forum List  »  InnoDB

SELECT DISTINCT
Posted by: j j
Date: November 09, 2005 07:46PM

I am trying to delete duplicate rows by transferring distinct records into a temp table, then deleting the records in the original table and inserting the temp back into the oringial

I want to return all rows from table1 where field1 is unique using the SELECT DISTINCT command.

SELECT DISTINCT `field1`FROM `table1`

This command only returns the field `field1` from each row. How can I return all fields in a row?

Running MySQL-Server-3.23.58-9.1

Options: ReplyQuote


Subject
Views
Written By
Posted
SELECT DISTINCT
140407
j j
November 09, 2005 07:46PM
29401
November 15, 2005 05:19PM
19457
j j
November 15, 2005 06:45PM
16538
November 15, 2005 07:37PM
14594
j j
November 15, 2005 09:25PM
13483
November 16, 2005 02:51AM
10277
November 16, 2005 04:57AM
9861
November 16, 2005 05:08AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.