How To Use Regular Expression in Pattern Match Conditions?

Answer

If you have a pattern that is too complex for LIKE to handle, you can use the regular expression pattern condition: REGEXP. The following tutorial exercise provides you some good examples:

SELECT 'WithoutBook.com' REGEXP '.*ggl.*' FROM DUAL;
1

SELECT 'WithoutBook.com' REGEXP '.*com$' FROM DUAL;
1

SELECT 'WithoutBook.com' REGEXP '^F.*' FROM DUAL;
1

All sql dba Questions

Ask your interview questions on sql-dba

Write Your comment or Questions if you want the answers on sql-dba from sql-dba Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---