update failed: found 2 records
Posted: Wed 29 Nov 2006 03:30
I use this in SQLUpdate
REPLACE INTO abs
(pid, bid, wid, day1, day2, day3)
VALUES
(:id , :cbid, &cwid, :day1, :day2);
Id and cbid are from another table in qry.SQL.
It work if the record is new but give me an error if it is there!!!
I tried to use qry.debug.SQL directly to mysql and it runs fine!
REPLACE INTO abs
(pid, bid, wid, day1, day2, day3)
VALUES
(:id , :cbid, &cwid, :day1, :day2);
Id and cbid are from another table in qry.SQL.
It work if the record is new but give me an error if it is there!!!
I tried to use qry.debug.SQL directly to mysql and it runs fine!