List:General Discussion« Previous MessageNext Message »
From:John Kopanas Date:April 13 2007 2:39am
Subject:Why Is Autonumber Not Working With Following Query
View as plain text  
I have the following query:

INSERT INTO summaries (entity_name, job_type, job_status)
(SELECT entity_name, "GOV", "Non-Workable" FROM tmpSummaryTable);

The only other column I have is id and it is primary key autonumber int.

Why would I get the following error?

ERROR 1062 (23000) at line 3: Duplicate entry '5' for key 1

Why is the query trying to enter a duplicate entry?

This makes no sense to me :-).

Thanks

John

-- 
John Kopanas
john@stripped

http://www.kopanas.com
http://www.cusec.net
http://www.soen.info
Thread
Why Is Autonumber Not Working With Following QueryJohn Kopanas13 Apr
  • Re: Why Is Autonumber Not Working With Following QueryJohn Kopanas13 Apr
  • Re: Why Is Autonumber Not Working With Following QueryBrent Baisley13 Apr