copy data from one field to another mysql mulitple rows -


i want copy data 1 field mysql mulitple rows.

i've tried following not working , mysql says "returns more 1 row"

update agreement  set _date2 = (select concat(substring(_date, 7), '-', substring(_date, 4, 2),      '-', substring(_date, 1, 2)) newdd   agreementtemp);  

try

update `table_name` set  destination_field=source_field 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -