Find and replace particular string in a column

前端 未结 2 1839
执笔经年
执笔经年 2021-01-19 16:03

I have a table in the database where it contains some of the user name. When I copy the database files from one machine to other machine, I need to manually update this tabl

2条回答
  •  孤城傲影
    2021-01-19 16:14

    Try this statement:

    UPDATE your_table SET machine_name = REPLACE(machine_name, machine_name, 'Your New Value')
    

提交回复
热议问题