David,

The easiest way to do this is to construct a command string and run that. eg

Dim exp as String
dim cmd as string

exp = "A, B, C"

cmd = "Select "+exp+ "from test"
run command cmd

Hope this helps

Martin

==================================
Martin Roundill
GIS Manager
Waitakere City Council
Private Bag 93109
Henderson
Waitakere City
New Zealand


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, 21 January 2000 10:15
To: Mapinfo List (E-mail)
Subject: MI Multiple columns selection in SQL




Hi dear friends,

I want to select more than one columns in one SQL statement. How can I use a
string or alias variable as the expression after the Select key word? Like I
have a table named Test with four columns A, B, C, and D. Can I do this:

Dim exp as String (or Alias)
exp = "A, B, C"
Select exp From Test

I tried, but it didn't work. Thanks in advance for any help,


David Hou


----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to