Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using column name assigned with AS CLAUSE in WHERE CLAUS
Message
 
 
To
17/05/2002 13:23:39
Bunny Dockery
New Generation Solutions
St. Catherine, Jamaica
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00658291
Message ID:
00658475
Views:
15
>Thanks for your help
>
>>(2) When using "$" in VFP, you can have
>> (a) MYFIELDNAME $ MYSTRING or
>> (b) MYSTRING $ MYFIELDNAME.
>> Can the the LIKE command in SQL Server achieve the same results as above ?
>
>You can but it could be slow on big tables.
>... MYFIELDNAME Like ('%' + MYSTRING + '%') Or
> MYSTRING Like ( '%' + MYFIELDNAME + '%')
>
>Is there a faster way to achieve the same result on big tables ? Is charindex faster.

It isn't slow because of LIKE operator but because every record in the table has to be processed.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform