Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select - SQL technique
Message
De
09/07/1998 11:45:16
 
 
À
09/07/1998 11:37:51
Ernie Veniegas
Micro System Solutions, Inc.
Calistoga, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00115754
Message ID:
00115757
Vues:
15
>Is one of these techniques better than the other? Is there a disadvantage to using the asterisk wildcard? Both seem to work okay but want to be sure I'm not setting a disadvantageous precedent.
>
>Example #1:
>
> select MyTable
> for i = 1 to fCount()
> lcFieldList = lcFieldList + ’MyTable.’ + Field(i) + ’,’
> endfor
>
> select &lcFieldList from MyTable into cursor MyCursor
>
>
>Example #2:
>
> select MyTable.* from MyTable into cursor MyCursor
>
>
>
>Thank for any opinions.

Asterisk is straightforward way. If you really want to select flexible set of particular fields then you can generate macros string.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform