The Replace function in SQL is used to update the content of a string. The function call is REPLACE( ) for MySQL, Oracle, and SQL Server.
The syntax of the Replace function is:
In str1, find where str2 occurs, and replace it with str3.
We use the following table for our example.
Table Geography
If we apply the following Replace function:
we get the following result:
Our website is made possible by displaying ads to our visitors. Please supporting us by whitelisting our website.