Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
All of your suggestions will work fine, If you are wanting to scan the rest of the table. I can not think of many reason why I would scan the entire table. This is how I would code it:
select table
set order to index
seek msearch
if found()
scan while field=msearch
... do whatever
endscan
endif
this will place your pointer on the starting record and the scan will exit when the match is not longer valid.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement