Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP9 SQL Tip
Message
De
17/12/2004 12:55:03
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
00970107
Message ID:
00970119
Vues:
16
>With the new CAST function, you can now handle VFP memo fields better. For example, I want a distinct set of ClassLib names used in a form:
>SELECT DISTINCT CAST(JUSTFNAME(classloc) as V(60)) ClassLoc ;
>   FROM forms\techcalls.scx ;
>   WHERE NOT EMPTY(ClassLoc) ;
>   INTO CURSOR crsLibs
>Cool, eh?

vfp8 and before ( except trim this is equal )
SELECT DISTINCT LEFT(JUSTFNAME(classloc),60) ClassLoc ;
   FROM forms\techcalls.scx ;
   WERE NOT EMPTY(ClassLoc) ;
  INTO CURSOR crsLibs
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform