Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Same SELECT with different order
Message
 
 
À
27/11/2009 16:28:00
Peter Wagner
Point Informática Ltda.
Limeira, Brésil
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Desktop
Divers
Thread ID:
01436778
Message ID:
01436781
Vues:
49
There's no concept of default order for a table in SQL Server. A result of a query w/o ORDER BY clause is not guaranteed to be in any particular order. IOW, use ORDER BY clause to get order you want/need.

>Hi, a have a doubt about the SELECT Clause in SQL Server with unique key indexes and the result of data, and why a difrent result with the same SELECT clause.
>
>I have 2 tables, the scrip follows:
>1º table
< snip >
>
>Select in both tables:
>
>select * from dbo.Teste1
>select * from dbo.Teste2
>
>What I want to know is Why in the first table with the select clause the result was ordered bay the "descricao" column, and why in the second select the result of the same SELECT command was returned in order the data was inserted,(no order).
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform