如何替換SQL Server表列中的字符串 - How to replace a string in a SQL Server Table Column

問題:

I have a table ( SQL Sever ) which references paths ( UNC or otherwise), but now the path is going to change. 我有一個表( SQL Sever )引用路徑( UNC或其他),但現在路徑將會改變。

In the path column, I have many records and I need to change just a portion of the path, but not the entire path. 在路徑列中,我有很多記錄,我只需要更改路徑的一部分,而不是整個路徑。 And I need to change the same string to the new one, in every record. 我需要在每條記錄中將相同的字符串更改爲新字符串。

How can I do this with a simple update ? 如何通過簡單的update來完成此操作?


解決方案:

參考一: https://stackoom.com/question/3Pts
參考二: How to replace a string in a SQL Server Table Column
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章