Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/03/2011, 15:03
Avatar de egepe
egepe
 
Fecha de Ingreso: diciembre-2009
Mensajes: 310
Antigüedad: 14 años, 4 meses
Puntos: 7
Respuesta: campo CLOB php error 1704

Aquí les dejo la solucion fijense bien que sólo esta modificado donde dice blob por clob, leí con más detenimiento la documentación y encontre la solución...
Código PHP:
<?php
$c 
oci_connect('hr''hrpwd''localhost/XE');
$myblobid 123;
$myv 'a very large amount of binary data';
$s oci_parse($c'insert into mybtab (blobid, blobdata)
values (:myblobid, EMPTY_CLOB())
returning blobdata into :blobdata'
);
$lob oci_new_descriptor($cOCI_D_LOB);
oci_bind_by_name($s':myblobid'$myblobid);
oci_bind_by_name($s':blobdata'$lob, -1OCI_B_CLOB);
oci_execute($sOCI_DEFAULT); // use OCI_DEFAULT so $lob->save() works
$lob->save($myv);
oci_commit($c);
$lob->close(); // close LOB descriptor to free resources
?>