Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select-SQL
Message
De
28/04/1997 11:51:53
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
 
 
À
28/04/1997 11:26:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00029712
Message ID:
00029925
Vues:
28
>>>I have the select statement as follows:
>>> select * from table1 where table1.name = (variable);
>>>
>>>what I want to do is be abel to change table1.name based on what the user inputs. So how do I use a variable in place of table1.name.
>>
>>If table1 is a variable
>>then
>>
>>STORE (ALLTRIM(TABLE1)) TO TABLE1
>> SELECT * FROM &TABLE1. WHERE &TABLE1..NAME = variable
>>
>>should work.( Note the two periods)
>
>Thanks, using the & macro substitution is what I was missing.
//:^)
L.A.Long
ProgRes
lalong1@charter.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform