Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create View in record # order
Message
 
À
22/02/2005 09:59:34
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
00989219
Message ID:
00989387
Vues:
31
>Does anyone know the correct syntax to create a SQL VIEW and order it in record # order ? I tried to add "order by recno()" to the end of my create sql view definition but it returned an error SQL: Column ' ' is not found.
>
>Thanks For Your Help !
>
>Stephen J. Hunt

Using recno() in SQL statements is a risky business. If there's more than one table in your FROM clause, the results are unpredictable. If you need records to appear in the order in which they were created, then it's best to have a field that stores the datetime() of the creation, and order by that.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform