Thursday, April 25, 2019

PLSQL Functions

REGEXP_REPLACE Function :

It will allow you to replace a sequence of characters in a string with another set of characters using regular expression pattern matching.

SELECT regexp_replace('Removing_Special - Characters .,_-$%&^& ',
'[^0-9 A-Za-z]', '');

            OR
Update emp2 set Ename = Regexp_Replace (Ename,'[^A-Z0-9 ]', '');

No comments:

Post a Comment

SUBQUERIES PRACTISE QUESTIONS

1. Write a SQL query to find those employees who receive a higher salary than the employee with ID 7369. SELECT * FROM EMP WHERE SAL >  (...