Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Incremental search on numeric
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00774073
Message ID:
00774367
Vues:
22
Here's a thought how much speed loss do you think I would get with this.
CREATE TABLE SORTTEST (SKNO N(4))
INSERT INTO SORTTEST VALUES (250)
INSERT INTO SORTTEST VALUES (350)
INSERT INTO SORTTEST VALUES (650)
INSERT INTO SORTTEST VALUES (6300)
INDEX ON SKNO TAG SKNO
INDEX ON TRANSFORM(SKNO) TAG SKNOA

** When I need to do an incremental search.
NUSERINPUT = 6
SELECT SKNO, RECNO() AS REC_NO ;
   FROM SORTTEST ;
   WHERE TRANSFORM(SKNO) = TRANSFORM(NUSERINPUT) ;
   INTO CURSOR CSR_SEEKTEMP 
IF _TALLY > 0
   GO CSR_SEEKTEMP.REC_NO IN SORTTEST
ENDIF
USE IN SELECT("CSR_SEEKTEMP")
Just looking for some thoughts,

Tracy
Tracy
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform