Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String within a string
Message
 
 
À
20/05/2009 23:54:05
Sergio Ortiz
Tek Services Group, Llc
Hollywood, Floride, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01401191
Message ID:
01401195
Vues:
93
There're many more top level domains than .COM and .NET, like .ORG, .US, etc.
Anyway, you can use LIKE operator or PATINDEX()/CHARINDEX() functions to check for presence of one string inside another. See BOL for details.


>I have a table with a field called email.
>I would like to make sure that all email are valid.
>How can I build a select statement that will return all the records that do not have a .com or .net in the email field.
>
>Select * from emails WHERE ".com" OR ".net" is not in the email field
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform