In the dbi description & help it is explicitely written this:
  $sth = $dbh->prepare("SELECT foo, bar FROM table WHERE baz=?");
  $sth->execute( $baz );

  but i'm trying this, and it's not working ... Is there any reason ?
  $sth = $dbh->prepare("SELECT foo FROM ? WHERE baz='hey'");
  $sth->execute( 'table1' );
  ...
  $sth->execute( 'table2' );
  ...

  Thanks
  Mortimer.



Reply via email to