![]() Topic awaiting preservation: PHP/MySQL and editing PRIMARY (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Deeetroit, MI. USA |
![]() I have a PRIMARY KEY of "id" in my MySQL table which is smallINT(2), auto_increment, and NOT NULL. |
Bipolar (III) Inmate From: |
![]() as far as Im aware, editing auto-incrementing ID's simply isn't possible |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() I don't see why you couldn't change the auto_incremented field... and the manual doesn't say anything either. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
![]() See here also: |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() your problem is more likely with your primary key, primary key's must be unique attributes if you are trying to set a value in a colume set to primary to an existing value you are gonna be hosed. |