First off,

You would need to add an "id" field, then set it to a primary key, then
set it to "auto_increment"

This will order them correctly


-----Original Message-----
From: Rich [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 10, 2002 10:31 AM
To: MySql
Subject: Duplicate Records


How does one go about removing one of two identical records in a MySQL
database?  My mistake in an earlier database was not applying a unique
number to each record (1, 2, 3, ---).  I know it's possible to use the
DISTINCT operator to show only one of the identical records in a result,

but that does not remove one of them from the database.

One thought that I had would be to add a unique number to each record,
and that could probably be done manually, one record at a time, but is
there a way to automate the process so that unique numbers could be
assigned with one command?

TIA

Rich

--
[EMAIL PROTECTED]


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail
<[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to