Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create View in record # order
Message
 
To
22/02/2005 09:59:34
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00989219
Message ID:
00989387
Views:
30
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform