Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Table/Column name as parameter
Thu, Jan 12 2006 8:43 PMPermanent Link

Qing
In DBISAM Version 3, I could pass table or column names as parameter, for example
SELECT * FROM :TableName
Parameters: ('People')

But I get an error in DBISAM 4: DBISAM Engine Error # 11949 SQL parsing error - Expected
table name but instead found 'People'

Is there anyway to work around this problem?
Fri, Jan 13 2006 10:09 AMPermanent Link

"Ralf Mimoun"
Qing wrote:
> In DBISAM Version 3, I could pass table or column names as parameter,
> for example SELECT * FROM :TableName
> Parameters: ('People')
>
> But I get an error in DBISAM 4: DBISAM Engine Error # 11949 SQL
> parsing error - Expected table name but instead found 'People'
>
> Is there anyway to work around this problem?

Generate the statement in code, eg. in OnBeforeOpen. I do that all the time
via Format() and use parameters only if there is no nother way, eg. for BLOB
values.

Ralf

Fri, Jan 13 2006 3:53 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Qing,

<< In DBISAM Version 3, I could pass table or column names as parameter, for
example SELECT * FROM :TableName
Parameters: ('People') >>

You have never been able to use parameters for table names in DBISAM.  You
can only use parameters in the WHERE or JOIN clauses in places where you
would normally use a constant value.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image