How to use variables (in insert string)
Hi.
How can I use variables in insert string When I execute procedure?
Perl Example:
my $name="John Doe";
my $sql='CALL insert_name($name)';
my $sth = $connection->prepare($sql);
$sth->execute;
$sth->finish;
Now when I run this perl-script, I get error:
Unknown column '$name' in 'field list' at..
How should I write $sql-string?
Subject
Written By
Posted
How to use variables (in insert string)
June 19, 2007 06:56AM
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.