Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IN LIST for a Select SQL
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00433749
Message ID:
00433977
Vues:
17
It'll do
but for me
where B.EONO LIKE '[0-9]%'
looks more 'SQL like' :) and theoreticaly it could be optimazable (could use index on eono).



>What about this?
>substring(d.eono,1,1) between "0" and "9")

>
>>>Will it work for the first character?

>>>>Is this better?
>>>>
>>>>where B.EONO LIKE '[0-9]%'
>>>>
>>

>>Yes it will. Take a look at LIKE operator in SQL Server BOL.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform