Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Search a column for 2 values
Message
De
07/01/2016 09:17:42
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01629636
Message ID:
01629638
Vues:
39
>Hi,
>
>I am trying to search through a table of SQL Server where a column has two values of char(254). It does not matter where, the field is a type Text. How would you do it in WHERE?
>
>TIA
>
>UPDATE. Wanted to add the the Text column is not full-text indexed. So Contains() does not work.

how about

where LEN(columnname) - LEN(REPLACE(columnname,char(254),'')) = 2
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform