Link to home
Start Free TrialLog in
Avatar of rickconner
rickconner

asked on

Need my SQL to update on existing...

ok, it's simple, I have this sql statement, and I want it to update "ON DUPLICATE KEY"... the two tables are identical so the easiest is best :)

$sql = "INSERT lapa_backups.2_transaction_tmp SELECT * FROM 2_transaction";
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Shouldn't that be an INSERT INTO lapa_backups.2_transaction_tmp ....
The INTO keyword is missing there.