Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SEEK or SELECT - SQL
Message
De
11/07/2000 09:47:38
Jonathan Cochran
Alion Science and Technology
Maryland, États-Unis
 
 
À
11/07/2000 06:38:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00390648
Message ID:
00390703
Vues:
8
Hi Kevin.

SEEK will move the record pointer. With INDEXSEEK, there is a parameter that specifies if you want to move the record pointer. I'm assuming since you are considering an SQL, you don't want the record pointer moved.

>OK
>
>SELECT *;
>FROM Table;
>WHERE Field = MainTable.PKField;
>INTO ARRAY aTemp
>
>IF _TALLY > 0
> RETURN .F.
>ELSE
> RETURN .T.
>ENDIF
>
>The field used in the select will be an indexed field - so is optimized.
>
>If I use the SEEK - I would just
>
>IF SEEK(cValue)
> RETURN .T.
>ELSE
> RETURN .F.
>ENDIF
>
>Kev
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform