| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| Database Discuss databases, database technologies, and database programming. ADO.NET and XML questions and comments have a separate forum. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Regular Expressions Help
Hi all,
I am new to oracle sql, so I am having a lil' bit of hard time to understand the regular expression part. I have a table that contains last name and email address and would like to select the emails that match the last the name, for example select smith if his email is smith@xy.com I wrote the following query but it doesn't seem to be working, I would greatly appreciate any help SELECT lname FROM member WHERE REGEXP_LIKE(email, lname||'^@') ; Thanks |
|
#2
|
|||
|
|||
|
Re: Regular Expressions Help
Code:
SELECT lname FROM member WHERE REGEXP_LIKE(email, lname||'@.+') |
|
#3
|
|||
|
|||
|
Re: Regular Expressions Help
Thank you very much
|
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|