replace with auto increment
Posted: Tue Sep 05, 2006 10:25 am
This won't work will it? or how would you use replace if you are using autoincrement... this is to use one form that updates and inserts...
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/

and it's exactly that: delete & insert.http://dev.mysql.com/doc/refman/5.1/en/replace.html wrote:REPLACE works exactly like INSERT, except that if an old row in the table has the same value as a new row for a PRIMARY KEY or a UNIQUE index, the old row is deleted before the new row is inserted. See Section 13.2.4, “INSERT Syntax”.