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

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -

Python __call__ special method practical example -