Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query takes time to get data
Message
From
26/12/2005 09:42:15
 
 
To
26/12/2005 09:32:56
Mazahir Naya
Kuwait United Co.
Kuwait, Kuwait
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:
01080798
Message ID:
01080814
Views:
12
>hello Fabio
>thank you very much for reply
>the id_no field type is char & size is 12 .
>
>best reagrds
>Mazahir

Then, if ID_NO is a 12 digits fixed length or with a left alignment:
* a index on ID_NO must to exist
INDEX ON ID_NO  TAG ID_NO

SELECT CONTRNO,ID_NO,SUBNO FROM POSTPAID WHERE ID_NO == "271120500557" ORDER BY ID_NO INTO CURSOR QUERY1
With right:
* write ID_NO with PADL(,12)
SELECT CONTRNO,ID_NO,SUBNO FROM POSTPAID WHERE ID_NO == PADL(....,12) ORDER BY ID_NO INTO CURSOR QUERY1
Previous
Reply
Map
View

Click here to load this message in the networking platform