Hi Gerald,

> try ALTER IGNORE TABLE.

Thank you very much. I should have checked the manual first.

http://dev.mysql.com/doc/mysql/en/ALTER_TABLE.html
IGNORE is a MySQL extension to standard SQL. It controls how ALTER TABLE
works if there are duplicates on unique keys in the new table. If IGNORE
isn't specified, the copy is aborted and rolled back if duplicate-key
errors occur. If IGNORE is specified, then for rows with duplicates on a
unique key, only the first row is used. The others are deleted.

--bk

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to