Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql fields
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Sql fields
Miscellaneous
Thread ID:
00567830
Message ID:
00567830
Views:
45
how can I make a field that I want pick in sql statement generic. For example I can write the following sql statements

select firstname from testdata into cursor test where firstname == a
select lastname from testdata into cursor test where lastname == b
select address from testdata into cursor test where address == c

how can I make it so that the selection fields can substituted with a variable? for example

select fieldname from testdata into cursor test where fieldname == somevariable

I want to be able to choose my own fieldnames.

Thanks
Nick Patel
Next
Reply
Map
View

Click here to load this message in the networking platform