問題:
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