Description
Replaces occurrences of a substring within a string with another substring
Syntax
REPLACE(source_string, search_string, replacement_string)
Parameters
| Parameter | Description | Data Type | Required |
|---|---|---|---|
| string | String value | String | Yes |
| search | Value or substring to search for | String | Yes |
| replacement | Replacement string | String | Yes |
Example
SELECT
REPLACE(full_name, ' ', '_')
FROM
rippling.employee.Employee
LIMIT
5;