Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find out number of fields
Message
 
 
À
30/01/2010 03:59:24
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Divers
Thread ID:
01446547
Message ID:
01446697
Vues:
36
>>Why?
>
>There may be functions (with arguments separated by commas) in the select.
>Counting the number of commas would not give the right result
>
>
>select left(field,2) as xx
>
Right. My first idea was also to count number of commas, but then I found there were several functions (ISNULL) in the field list.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform