How can I remove leading and trailing quotes in SQL Server?

前端 未结 14 1455
青春惊慌失措
青春惊慌失措 2020-12-15 03:28

I have a table in a SQL Server database with an NTEXT column. This column may contain data that is enclosed with double quotes. When I query for this column, I want to remo

14条回答
  •  难免孤独
    2020-12-15 04:09

    I thought this is a simpler script if you want to remove all quotes

    UPDATE Table_Name
    SET col_name = REPLACE(col_name, '"', '')
    

提交回复
热议问题