Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why is this slow?
Message
De
20/04/2001 09:03:09
 
 
À
20/04/2001 08:47:30
Guy Pardoe
Pardoe Development Corporation
Peterborough, New Hampshire, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00496698
Message ID:
00497813
Vues:
12
Queries containing LIKE are optimizable as long as the literal takes the form value%. SQL Server can convert the comparison. For example, if the WHERE clause looked like au_lname LIKE 'sm%', SQL Server solve this by converting it to:

au_lname >= 'sm' AND au_lname < 'sn'

SQL Server cannot optimize the situation where the wildcard comes first: '%sm'

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform