mysql怎么批量写一个字段等于另一个字段的值

如题所述

    replace into test_tbl (id,dr) values (1,'2'),(2,'3'),...(x,'y');


update

table as t1,table as t2

set 

t1.phone=t2.tel 

where 

t1.id=t2.id

温馨提示:答案为网友推荐,仅供参考
相似回答