You can use REPLACE function to change the phrase.
Syntax:
replace(<string>,<matching_string>,<replace_with>)
MySQL, SQL Server, PostgreSQL:
SELECT replace('Today is Monday', 'Monday', 'Tuesday') AS phrase;
Oracle:
SELECT replace('Today is Monday', 'Monday', 'Tuesday') AS phrase FROM dual;
Comments
Leave a comment