Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
About analog method in Transact-SQL like AT()
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00851754
Message ID:
00851822
Views:
9
>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
Cheers,

Zoran
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform