Dave Tang <d.t...@imb.uq.edu.au> asked:
 
> I am having a problem with binding a variable when executing on a DBI
> object.
[...]

"You can only reliably bind values, not field or table names. 

Database that plan query execution won't accept this, because they need table 
and field names to make their query execution plans. Without knowing table and 
field names, how can the database construct a plan that calls for using indexes 
that might be available? (Answer: It can't.)"

  -- http://www.perlmonks.org/index.pl?node_id=197667

HTH,
Thomas

PS: 1st hit while googling "dbi table name as bind variable" ;-)

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to