नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
Applies to:
Databricks SQL
Databricks Runtime
Replaces all occurrences of search with replace.
Syntax
replace(str, search [, replace] )
Arguments
str: ASTRINGexpression to be searched.search: ASTRINGexpression to be replaced.replace: An optionalSTRINGexpression to replacesearchwith. The default is an empty string.
Returns
A STRING.
If you do not specify replace or is an empty string, nothing replaces the string that is removed from str.
Examples
> SELECT replace('ABCabc', 'abc', 'DEF');
ABCDEF
> SELECT replace('ABCabc' COLLATE UTF8_LCASE, 'abc', 'DEF');
DEFDEF