SQL Server REPLACE() 函式
定義和用法
REPLACE() 函式在字串中用新的子字串替換所有出現的子字串。
注意:搜尋不區分大小寫。
提示:還可以檢視 STUFF() 函式。
語法
REPLACE(string, old_string, new_string)
引數值
引數 | 描述 |
---|---|
string | 必需。原始字串 |
old_string | 必需。要被替換的字串 |
new_string | 必需。新的替換字串 |
技術詳情
支援版本 | SQL Server(2008 及更高版本)、Azure SQL Database、Azure SQL Data Warehouse、Parallel Data Warehouse |
---|