Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ORDER table
Message
De
15/07/2003 08:50:18
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
00810084
Message ID:
00810158
Vues:
20
This message has been marked as a message which has helped to the initial question of the thread.
>> How can I use ORDER BY clause for ORDER table?

Since ORDER is listed as a reserve word, your safest approach will be to delimit the work with square brackets.


>> Also what is better

IMO, always be explicit.

-Mike

>Hi everyone,
>
>Sorry for such novice question, but it got me stumped for a moment. How can I use ORDER BY clause for ORDER table? Also what is better: name every field like select company, OrderNumber from [ORDER] order by company, OrderNumber or select company, OrderNumber from [ORDER] order by 1,2 ?
>
>Thanks in advance.
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