Update substring of a column

前端 未结 3 1626
猫巷女王i
猫巷女王i 2021-01-01 17:03

I have a table within a SQL Server 2008 database called Meter. This table has a column called Name.

Each entry within the column Nam

3条回答
  •  醉梦人生
    2021-01-01 17:43

    MYSQL:

    UPDATE Meter
    SET Name = CONCAT('ZAA' ,'_', SUBSTRING(Name, 4, LENGTH(Name)))
    WHERE Name LIKE 'ZAA\%'
    

提交回复
热议问题