in reply to Re: Perl connects/writes to Oracle using Oracle encrypted link
in thread Perl connects/writes to Oracle using Oracle encrypted link
-- use instead eithermy $info = "insert into table1 values('$user','$filename','$filesize', +'$time','$direction')"; my $sth = $dbh->prepare($info); $sth->execute();
ormy $info = "insert into table1 values (?, ?, ?, ?, ?)"; my $sth = $dbh->prepare($info); $sth->execute($user, $filename, $filesize, $time, $direction);
(for various reasons, including security ones)my $info = "insert into table1 values(:user,:filename,:filesize,:time, +:direction)"; my $sth = $dbh->prepare($info); $sth->bind_param(user => $user); $sth->bind_param(filename => $filename); $sth->bind_param(filesize => $filesize); $sth->bind_param(time => $time); $sth->bind_param(direction => $direction); $sth->execute();
|
|---|