2011-09-26 45 views

回答

10

您需要使用DBD ::甲骨文模塊,

use DBD::Oracle qw(:ora_types); 

,當你綁定PARAMS不要忘記壽指定ora_type

$sth = $dbh->prepare("insert ..."); 
$sth->bind_param($field_num, $lob_value, { ora_type => ORA_LOB }); 
$sth->execute 

的$ lob_value是一個標量與您的文件的內容變量。

+1

+1 - 答案很好,並且抵消了OP似乎是一個自私的混蛋,他永遠不會接受你的答案:( – DVK

+3

+ 1出於與DVK相同的原因。 – Ollie