Problema con una consulta con Oracle8i

From: Date: Thu, 13 Dec 2001 00:41:44 +0000
Subject: Problema con una consulta con Oracle8i
Groups: php.general.es 
Request: Send a blank email to general-es+get-16656@lists.php.net to get a copy of this message
Tengo el siguiente problema y parece que es el formato de la fecha, si alguien me puede ayudar. Muchas Gracias Funciona $query="select compania,cliente,nombre,factura,orden_cliente,tipo,saldo,fecha from estado_cuenta"; $stmt=ociparse($con,$query); ociexecute($stmt); <file:///\\while> while (OCIFetchinto($stmt, &$resultados)); print "<table border=2>"; for($i=0;OCIFetchinto($stmt,&$row,OCI_ASOC);$i++) { print "<tr><td>$row[0]</td> <td>$row[1]</td> <td>$row[2]</td><td>$row[3]</td><td>$row[4]</td> <td>$row[5]</td> <td>$row[6]</td> <td>$row[7]</td></tr>"; } print print "<table>"; No Funciona $query="select compania,cliente,nombre,factura,orden_cliente,tipo,saldo,fecha from estado_cuenta,date"; $stmt=ociparse($con,$query); ociexecute($stmt); <file:///\\while> while (OCIFetchinto($stmt, &$resultados)); print "<table border=2>"; for($i=0;OCIFetchinto($stmt,&$row,OCI_ASOC);$i++) { print "<tr><td>$row[0]</td> <td>$row[1]</td> <td>$row[2]</td><td>$row[3]</td><td>$row[4]</td> <td>$row[5]</td> <td>$row[6]</td> <td>$row[7]</td></tr>"; } print print "<table>"; Error: Warning: OCIFetchInto: ORA-00600: internal error code, arguments: [], [], [], [], [], [], [], [] in /var/www/html/test.php on line 27 Y tambien modificando nos da este otro error: $cursor=OCIParse($con, "ALTER SESSION SET NLS_DATE_FORMAT='DD-MON-YY'"); ociexecute($cursor); ERROR: Warning: OCIFetchInto: Error while trying to retrieve text for error ORA-00600 in /var/www/html/test.php on line 27 Maynor Marino Mijangos

« previous php.general.es (#16656) next »