|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi Guys,
I'm trying to use an SQL statement to extract all email addresses from a Forum I use on my site. Some of the colums are empty as the email field in optional and others are just invalid text. What SQL statement can I use to extract all email Adds that only contain '@' ? this way I can be sure that only valid records are extracted... ...WHERE email LIKE "@".... ???????? Please help... Cheers and have a great day.. |
|
#2
|
||||
|
||||
|
Try
Code:
SELECT Email FROM TableName WHERE Email LIKE '%@%' Or you can do this Code:
SELECT Email
FROM TableName
WHERE CHARINDEX('@', Email) <> 0
Last edited by Memnoch : November 5th, 2004 at 08:28 AM. |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > Help with SQL statement |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|