Problem loading a new DB from a dump script
Posted by:
Steven Rix
Date: January 13, 2005 01:54AM
I'm trying to populate a new copy of my database from the dump script taken from an overnight backup. It starts out OK but then errors with: ERROR 1060 (42S21) at line nnn: Duplicate column name 'id'.
Taking a look at the script I can see that the previous couple of tables have loaded without problem but the offending CREATE TABLE looks like this:
CREATE TABLE xxx (id int(11) NOT NULL auto_increment, <other columns...> ,PRIMARY KEY (id,id)) ...
The id column is only defined once but is duplicated in the PRIMARY KEY definition - strange! Looking through the script I see this is the case on some of the other CREATE TABLE statements also.
Any ideas?
Many thanks,
Steve Rix
Subject
Views
Written By
Posted
Problem loading a new DB from a dump script
3671
January 13, 2005 01:54AM
2292
June 17, 2005 08:15PM
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.