Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
About analog method in Transact-SQL like AT()
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00851754
Message ID:
00852208
Vues:
9
Zoran.
Thank you for your answer.
But charindex() function solve my problem.



>Hello all!
>Who know function or metodology in T-SQL like
>AT(cSearchExpression, cExpressionSearched [, nOccurrence]) in VisualFoxPro.


Sergey,

You can use LIKE statement, or CONTAINS function
( Note that CONTAINS is only applicable for full-text indexed columns )


USE Northwind
GO

SELECT * FROM Customers
WHERE CompanyName LIKE '%Rest%'
GO

---- OR ----

SELECT * FROM Customers
WHERE CONTAINS(CompanyName, 'Rest')
GO
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform