Yes, I have several hundred entries unique, but a few hundred that are identical as you suspected...so I'm trying to UPDATE just those. I'll try the ALTER table method you suggest.
Here's what I've been attempting so far:
//MySQLQuery is already set up to deliver the host, db, pwd
//$id_to_change is a posted var coming in from an admin form
//get_unique_id() just calls a function that
//creates a random six digit integer
<?
php_track vars;
$result = MySQLQuery("SELECT dealer_id, id FROM dealers WHERE dealer_id = '$id_to_change'",
"There was an error executing change_id.php",
"Sorry, change_id.php update query failed.");
while ($row = mysql_fetch_array($result)){
$dealer_id = $row['dealer_id'];
}//end while
$count = mysql_num_rows($result);
for ( $i = 0; $i < $count; $i++) {
$new_dealer_id[$i] = get_unique_id();
MySQLQuery("UPDATE dealers SET dealer_id='$new_dealer_id[$i]' WHERE dealer_id='$id_to_change'",
"There was an error executing change_id.php",
"Sorry, change_id.php update query failed.");
}//end for
mysql_free_results;
?>