Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Contains operator
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01249985
Message ID:
01249990
Views:
11
>Is there an SQL equivalent to the $ operator in VFP that does not use the CONTAINS function?

See LIKE operator
DECLARE @Lookfor varchar(10)
SET @Lookfor ='i'
IF 'My string' LIKE '%' + @Lookfor + '%'
  PRINT 'Found ' + @Lookfor
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform