Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Concatenating during a SELECT
Message
De
14/11/2000 14:22:42
 
 
À
14/11/2000 14:17:44
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00441758
Message ID:
00441762
Vues:
9
>I'm doing a SELECT on a file and for one of the columns I want a list of the distinct (character) values for that field. Is there any nice way of doing this?
>


How about:

SELECT Distinct MyField FROM MyTable INTO CURSOR MyCursor

You can also use the GROUP BY clause to limit the occurance of a particular keying sequence:


SELECT MyKey1, MySubKey1,SomeRandomField FROM MyTable GROUP BY MyKey1,MySubKey1 INTO CURSOR MyCursor

>Thanks,
>Elyse
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform