Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Searching for the last six digits
Message
De
18/04/2013 21:03:58
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01571435
Message ID:
01571439
Vues:
56
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform