I want to copy data from one field to another mysql mulitple rows.
I've tried following but its not working for all and mysql even says "returns more than 1 row"
UPDATE agreement
SET _date2 = (SELECT Concat(SUBSTRING(_date, 7), '-', SUBSTRING(_date, 4, 2),
'-', SUBSTRING(_date, 1, 2)) AS newdd FROM agreementtemp);
try
update `table_name` set destination_field=source_field
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With