Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
View not respecting ORDER BY clause
Message
 
 
À
23/07/2009 13:18:47
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01348243
Message ID:
01414305
Vues:
43
>Oracle supports ORDER BY in views and has for several versions. Is there any reason why I should not use it?

What benefits do you get by using views with ORDER BY clause?

It's not a part of ANSI SQL standard and may not be available in other databases.
Also a query w/o ORDER BY clause is not suppose to return records in any particular order. IOW, if you switch FROM from a view to a table you'll get different result which is inconsistent.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform