Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Searching for the last six digits
Message
From
18/04/2013 21:03:58
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01571435
Message ID:
01571439
Views:
57
>Well, you can use % in front or use
>
>select .. from myTable where RIGHT(Column,6) = @Last6
>
>May perform marginally better
>
>select .. from myTable where Column LIKE '%' + @Last6

You're right. I only have to put the % in front.

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform