SQLite REPLACE() Function
Definition and Usage
The REPLACE() function replaces all occurrences of a text with another text. It is case sensitive.
Syntax
REPLACE(text, from, to)
Parameter Values
| Parameter | Description |
|---|---|
| text | Required. The text to change |
| from | Required. The text to replace |
| to | Required. The new text |
Technical Details
| Return type: | Text |
|---|
More Examples
Example
Remove the spaces from the phone numbers:
SELECT ShipperName, REPLACE(Phone, ' ', '')
FROM Shippers;
Try it Yourself »