开发者

How can I duplicate a field?

开发者 https://www.devze.com 2023-02-15 13:07 出处:网络
I have a table with two fields, and i need to duplicate one field in another one with different name but same data

I have a table with two fields, and i need to duplicate one field in another one with different name but same data

is it possible via phpmyadmin or so?

assuming i have

user_id |  user_name

i need to have

user_id |  user_name | user_name2

where user_name has same data as user_name2

what is the fastest way? is just for some experiment purpose so don开发者_如何学Pythont comment on why i'm doing it thanks


update table_name set user_name2= user_name
0

精彩评论

暂无评论...
验证码 换一张
取 消