jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
Well, lets start with a snippet of code
Is it not possible to use a ? for a table name, or is it something else ?
Thanks a lot
Luca
Well, lets start with a snippet of code
This fails, Mysql tells me that the execution failed due to some errors inside the mysql statement.$sth = $dbl->prepare("SELECT val FROM ? where col=?") ; if (! $sth->execute( "my_table_name", "bla") ) { print "FAILED\n" ; }
Is it not possible to use a ? for a table name, or is it something else ?
Thanks a lot
Luca
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Mysql - prepare
by marto (Cardinal) on Mar 15, 2006 at 11:34 UTC | |
Re: Mysql - prepare
by jbrugger (Parson) on Mar 15, 2006 at 12:26 UTC | |
Re: Mysql - prepare
by kwaping (Priest) on Mar 15, 2006 at 15:45 UTC |
Back to
Seekers of Perl Wisdom