Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
>
>Also, rather that using AFIELDS, you could
>SELECT * FROM tablename INTO CURSOR cursorname NOFILTER
>to get a copy of your original table for reporting.
You raise an interesting point here Mark. That sure is a way to create a cursor based on an existing structure. The cursor will contain every record in the original dataset. I often want an empty cursor.
You could go
SELECT * FROM tablename WHERE .F. INTO CURSOR cursorname NOFILTER
however this is not Rushmore optimizable (try it on a huge dataset!)
So....
Does anyone know a fast one liner for creating an empty cursor based on an existing structure?
Précédent
Suivant
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