Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I want only one record in my query.
Message
From
04/06/1999 12:54:58
 
 
To
04/06/1999 12:40:33
Martin Thibault
Minière Québec Cartier
Port-Cartier, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00226574
Message ID:
00226584
Views:
21
>In this statement : "select * from db where cnum = 'c'".
>
>I want that query return only one record and the query stop after find one record. I don't want that the query scan all the database for it.
>
>What I can append to this query to do it?

Forgot something in the first answer:

the TOP clause won't make the select faster, because it's applied to the result set of the select, and not to the original table ! You may add an order clause to have more control about which will be your TOP 1 record. Maybe native xBase commands will do the work better.
Vlad-Georg
Previous
Reply
Map
View

Click here to load this message in the networking platform