Re: table name as variable in INSERT
Posted by:
B A
Date: July 31, 2011 09:23AM
I did, and this is the error message I get now:
DBD::mysql::st execute failed: Table 'perltest.$table' doesn't exist at ptest.pl line 22.
SQL error:$DBI::errstr
my code now reads:
my $ins_rec="INSERT INTO \$table\ (symbol) VALUES(\'$name\');";
Subject
Written By
Posted
Re: table name as variable in INSERT
July 31, 2011 09:23AM
September 24, 2011 10:37AM
September 24, 2011 10:39AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.