Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Xbase equivalent of Select distinct
Message
 
À
29/04/2005 06:43:37
Suhas Hegde
Dental Surgeon
Sirsi, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Database:
Visual FoxPro
Divers
Thread ID:
01009591
Message ID:
01009593
Vues:
9
This message has been marked as the solution to the initial question of the thread.
>Hi,
>
>Can any 1 just show me what is the equivalent way of
>
>Select Distinct f1 from foo into cursor foo1
>
>
>to do using Xbase codes ?
>
>TIA
>
>suhashegde
CREATE CURSOR Foo1 (F1 C(10))
INDEX ON F1 TAG Foo1

SELECT Foo
SCAN
   SELECT Foo1
   SEEK Foo.F1
   IF NOT FOUND()
      APPEND BLANK
      REPLACE F1 WITH Foo.F1
   ENDIF
   SELECT Foo
ENDSCAN
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform