Find and replace particular string in a column

前端 未结 2 1864
执笔经年
执笔经年 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:24

    UPDATE table_that_contains_users
    SET field_user = replace( field_user, 'OLDDOMAIN\', 'NEWDOMAIN\')
    

    is that?

提交回复
热议问题