Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
You can do a second SELECT-SQL from the first one.
SELECT * FROM MyTable WHERE MyFieldA = 1 INTO CURSOR Temp
...
SELECT * FROM Temp WHERE MyFieldB = 2 INTO CURSOR Temp
HTH
>I created a cursor to be used in a report built off of several files. Some records are basically not needed because several fields (8 to be exact) have 0.00 balances in them. The client would prefer these records not be listed. Right now, I have accomplished this by using the FOR statement in the REPORT call and listing a large list of record/field comparisons to exclude from the report (FOR begbal<>0.0 or endbal<>0.0...).
>
>Is there a way to remove records from a cursor after the SELECT statement created it?
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