Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Order of SQL Select statement without order clause
Message
De
08/02/2006 02:41:39
 
 
À
07/02/2006 22:30:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01094534
Message ID:
01094555
Vues:
8
>I use forward read only cursor in C# accessing VFP with OLE DB.
>When my command is "select * from mytable" without any order clause is reading records in recno() order guarantied. It seems to work in this way just wondering whether there is any formal confirmation.
>I guess, there is no difference between OLE DB internal implementation and SQL engine in VFP itself.
>
>
>TIA
>Michael

There is no guarantee that the output will be in recno() order, although this will usually be the case. If you depend on a specific order, I suggest that you add a field for this purpose, for instance a datetime() field. Especially if you at a later point must switch to for instance SQL server, where the record order is completely out of your hands, you will need this index.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform