Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/02/2009, 18:47
ferpitol
 
Fecha de Ingreso: febrero-2009
Mensajes: 2
Antigüedad: 16 años, 1 mes
Puntos: 0
Respuesta: problemas con oci_bind_by_name

YA ENCONTRE LA SOLUCION, A QUIEN VEA ESTO EL DETALLE ESTA EN QUE YA SEA PHP U ORACLE NO SABEN QUE HACER CON LA VARIABLE DEL QUERY LA SOLUCION ES PONER EL INSERT ENTRE BEGIN END OSEA

"BEGIN
insert into SIRCAV.tcpersona(idtcpersona
, nombre
, paterno
, materno
, rfc
, idtcclienteimportado)
values (nvl((select max(idtcpersona) from SIRCAV.tcpersona),0) + 1
,'" . $this->nombre . " '
,'". $this->paterno ."'
,'" . $this->materno . "'
,'" . $this->rfc . "'
," . $this->idtcclienteimportado. "
) returning idtcpersona into :rid;
END"

Y CHACACHACAN JALA PERFECTAMENTE