Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to fix connection is busy error
Message
From
20/01/2005 13:26:26
 
 
To
19/01/2005 21:57:03
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00977596
Message ID:
00978973
Views:
29
Aaron,

I have a lot of different views which return data (say customer list) in a different order and return different subsets.
One view returns customers in a name other.
Second view returns customers by a city order.
Also, there can be large gaps (a large number of records are deleted) in id fields sequence.

The order by primary key is totally different an is not related to those views.

Please explain, how I can use this approach in this case ?


>Dear Andrus,
>
>Then, you may go to harder way. There should have Primary Key in your table, e.g. ID...
>
>For example, ID = 1,2,3....100,....100000
>
>
>nStart = 1  && Starting position
>nRecord = 100 && Display 100 records
>nEnd = nStart + nRecord
>
>SELECT * FROM TABLEA WHERE ID BETWEEN ?nStart TO ?nEnd
>
>
>
>***ON PRESS NEXT PAGE
>nStart = TableA.ID + 1
>nRecord = 100
>nEnd = nStart + nRecord
>
>SELECT * FROM TABLEA WHERE ID BETWEEN ?nStart TO ?nEnd
>
>
>In this way, you can simulate the Offset
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform