in reply to Re^2: Executing Oracle PL/SQL statements through the DBI
in thread Executing Oracle PL/SQL statements through the DBI
I am not absolutely sure that Oracle DBD can bind variables, but if it can, you, imho, don't have to escape nothing...my @pieces = ('<STN>PIKE RD & BUCK RD</STN>', "''' &", 'another mess'); my $sql = 'insert into mytable (location_desc) values (?);'; my $sth = $dbh->prepare($sql); foreach (@pieces) { $sth->execute($_); }
I wrote the code by hand, errors can happen :)
|
|---|