Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Search a column for 2 values
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01629636
Message ID:
01629646
Vues:
19
>>>>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.
>>>
>>>Not sure if I understand the question, maybe something like this?
>>>
>>>where myColumn like '%FirstString%' and myColumn like '%SecondString%'
>>
>>Thank you.
>
>Sorry, I read the message before my coffee, after reading Sergey's answer now I understand your question...

No need to be sorry; you tried to help and that is what matters. Plus your answer was very close to a solution.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform