[EMAIL PROTECTED] wrote:

> my $sth = $dbh->prepare("select vtr_id into ? from t_vertraege " .
>                           "where vtr_nr='$vbb_ver_nr'");

As far as I know, it is simply no possible to bind a table name as a
parameter. You have to write table names literally into the query,
respectively with a scalar variable, which will be interpolated.

Joern

-- 
Joern Reder -- Software Development,  dimedis GmbH, 50672 Koeln
               http://www.dimedis.de/ http://spirit.dimedis.de/
supporting:    http://www.zyn.de/ http://www.netcologne.de/~nc-joernre/
CPAN:          http://www.perl.com/CPAN/modules/by-module/CIPP/JRED/

Reply via email to