Topic awaiting preservation: PHP/MySQL and editing PRIMARY |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: Deeetroit, MI. USA |
posted 08-13-2002 10:39
I have a PRIMARY KEY of "id" in my MySQL table which is smallINT(2), auto_increment, and NOT NULL. |
Bipolar (III) Inmate From: |
posted 08-13-2002 11:41
as far as Im aware, editing auto-incrementing ID's simply isn't possible |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 08-13-2002 12:51
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 |
posted 08-13-2002 15:35
See here also: |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 08-13-2002 18:24
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. |