rafael Tue Jan 30 01:51:33 2001 EDT
Modified files:
/phpdoc/es/functions oci8.xml
Log:
Traduction
Index: phpdoc/es/functions/oci8.xml
diff -u phpdoc/es/functions/oci8.xml:1.2 phpdoc/es/functions/oci8.xml:1.3
--- phpdoc/es/functions/oci8.xml:1.2 Tue Oct 31 00:11:06 2000
+++ phpdoc/es/functions/oci8.xml Tue Jan 30 01:51:33 2001
@@ -1,20 +1,20 @@
<reference id="ref.oci8">
- <title>Oracle 8 functions</title>
+ <title>Funciones de Oracle 8</title>
<titleabbrev>OCI8</titleabbrev>
<partintro>
<simpara>
- These functions allow you to access Oracle8 and Oracle7 databases. It
- uses the Oracle8 Call-Interface (OCI8). You will need the Oracle8 client
- libraries to use this extension.
+ Estas funciones permiten acceder a bases de datos Oracle8 y Oracle7. Estas
+ usan la Oracle8 Call-Interface (OCI8). Necesitar� las librer�as clientes de
+Oracle8
+ para usar esta extensi�n.
</simpara>
<simpara>
- This extension is more flexible than the standard Oracle
- extension. It supports binding of global and local PHP variables
- to Oracle placeholders, has full LOB, FILE and ROWID support
- and allows you to use user-supplied define variables.
+ Esta extensi�n es m�s flexible que las est�ndar de Oracle.
+ Soporta el enlace de variables locales y globales de PHP con
+ placeholders de Oracle, tiene soporte completo para LOB, FILE y ROWID
+ y le permiten usar las variables definidas por el usuario.
</simpara>
</partintro>
-
+
<!--
OCIBindByName
OCIDefineByName
@@ -50,11 +50,11 @@
<refnamediv>
<refname>OCIDefineByName</refname>
<refpurpose>
- Use a PHP variable for the define-step during a SELECT
+ Usa una variable de PHP para el define-step durante una sentencia SELECT
</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCIDefineByName</function></funcdef>
@@ -65,31 +65,29 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIDefineByName</function> uses fetches SQL-Columns
- into user-defined PHP-Variables. Be careful that Oracle user
- ALL-UPPERCASE column-names, whereby in your select you can also
- write lower-case. <function>OCIDefineByName</function> expects
- the <parameter>Column-Name</parameter> to be in uppercase. If you
- define a variable that doesn't exists in you select statement, no
- error will be given!
+ <function>OCIDefineByName</function> busca el valor de las Columnas-SQL
+ dentro de variables PHP definidas por el usuario. Cuidado que Oracle nombra todas
+ las columnas en MAYUSCULAS, mientras que en su select puede usar tambi�n
+min�sculas
+ write lower-case. <function>OCIDefineByName</function> espera que
+ <parameter>Column-Name</parameter> est� en may�sculas. Si define una variable
+ que no existe en la sentecia SELECT, no se producir� ning�n error.
</para>
<para>
- If you need to define an abstract Datatype (LOB/ROWID/BFILE) you
- need to allocate it first using
- <function>OCINewDescriptor</function> function. See also the
- <function>OCIBindByName</function> function.
+ Si necesita definir un tipo de dato abstracto (LOB/ROWID/BFILE) tendr� que
+alojarlo
+ primero usando la funci�n <function>OCINewDescriptor</function> function. Vea
+tambi�n
+ la funci�n <function>OCIBindByName</function>.
</para>
<example>
<title>OCIDefineByName</title>
<programlisting>
<?php
-/* OCIDefineByPos example [EMAIL PROTECTED] (980219) */
+/* OCIDefineByPos example [EMAIL PROTECTED] (980219) */
$conn = OCILogon("scott","tiger");
$stmt = OCIParse($conn,"select empno, ename from emp");
-/* the define MUST be done BEFORE ociexecute! */
+/* la definici�n DEBE hacerse ANTES del ociexecute! */
OCIDefineByName($stmt,"EMPNO",&$empno);
OCIDefineByName($stmt,"ENAME",&$ename);
@@ -112,10 +110,10 @@
<refentry id="function.ocibindbyname">
<refnamediv>
<refname>OCIBindByName</refname>
- <refpurpose>Bind a PHP variable to an Oracle Placeholder</refpurpose>
+ <refpurpose>Enlaza una variable PHP a un Placeholder de Oracle</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCIBindByName</function></funcdef>
@@ -127,32 +125,29 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIBindByName</function> binds the PHP variable
- <parameter>variable</parameter> to the Oracle placeholder
- <parameter>ph_name</parameter>. Whether it will be used for
- input or output will be determined run-time, and the necessary
- storage space will be allocated. The
- <parameter>length</parameter> paramter sets the maximum length
- for the bind. If you set <parameter>length</parameter> to -1
- <function>OCIBindByName</function> will use the current length of
- <parameter>variable</parameter> to set the maximum length.
- </para>
- <para>
- If you need to bind an abstract Datatype (LOB/ROWID/BFILE) you
- need to allocate it first using
- <function>OCINewDescriptor</function> function. The
- <parameter>length</parameter> is not used for abstract Datatypes
- and should be set to -1. The <parameter>type</parameter> variable
- tells oracle, what kind of descriptor we want to use. Possible
- values are: OCI_B_FILE (Binary-File), OCI_B_CFILE
- (Character-File), OCI_B_CLOB (Character-LOB), OCI_B_BLOB
- (Binary-LOB) and OCI_B_ROWID (ROWID).
+ <function>OCIBindByName</function> enlaza la variable PHP
+ <parameter>variable</parameter> a un placeholder de Oracle
+ <parameter>ph_name</parameter>. Si esta ser� usada para entrada o salida
+ se determinar� en tiempo de ejecuci�n, y sera resevado el espacio necesario de
+ almacenamiento. El par�metro <parameter>length</parameter> establece el tama�o
+m�ximo
+ del enlace. Si establece <parameter>length</parameter> a -1
+ <function>OCIBindByName</function> usar� el tama�o de la
+ <parameter>variable</parameter> para establecer el tama�o m�ximo.
+ </para>
+ <para>
+ Si necesita enlazar tipos de datos abstractos (LOB/ROWID/BFILE) necesitar�
+primero
+ reservar la memoria con la funci�n <function>OCINewDescriptor</function>.
+ <parameter>length</parameter> no se usa para tipos de datos abstractos y
+ deber�a establecerse a -1. La variable <parameter>type</parameter> le informa a
+ Oracle, que tipo de descriptor queremos usar. Los valores posibles son:
+ OCI_B_FILE (Binary-File), OCI_B_CFILE (Character-File),
+ OCI_B_CLOB (Character-LOB), OCI_B_BLOB (Binary-LOB) and OCI_B_ROWID (ROWID).
</para>
<example>
<title>OCIDefineByName</title>
<programlisting>
<?php
-/* OCIBindByPos example [EMAIL PROTECTED] (980221)
+/* OCIBindByPos example [EMAIL PROTECTED] (980221)
inserts 3 resords into emp, and uses the ROWID for updating the
records just after the insert.
@@ -161,8 +156,8 @@
$conn = OCILogon("scott","tiger");
$stmt = OCIParse($conn,"insert into emp (empno, ename) ".
- "values (:empno,:ename) ".
- "returning ROWID into :rid");
+ "values (:empno,:ename) ".
+ "returning ROWID into :rid");
$data = array(1111 => "Larry", 2222 => "Bill", 3333 => "Jim");
@@ -179,8 +174,8 @@
$sal = 10000;
while (list($empno,$ename) = each($data)) {
- OCIExecute($stmt);
- OCIExecute($update);
+ OCIExecute($stmt);
+ OCIExecute($update);
}
$rowid->free();
@@ -191,7 +186,7 @@
$stmt = OCIParse($conn,"select * from emp where empno in (1111,2222,3333)");
OCIExecute($stmt);
while (OCIFetchInto($stmt,&$arr,OCI_ASSOC)) {
- var_dump($arr);
+ var_dump($arr);
}
OCIFreeStatement($stmt);
@@ -210,10 +205,10 @@
<refentry id="function.ocilogon">
<refnamediv>
<refname>OCILogon</refname>
- <refpurpose>Establishes a connection to Oracle</refpurpose>
+ <refpurpose>Establece la conexi�n con Oracle</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCILogon</function></funcdef>
@@ -223,21 +218,21 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCILogon</function> returns an connection identifier
- needed for most other OCI calls. The optional third parameter
- can either contain the name of the local Oracle instance or the
- name of the entry in tnsnames.ora to which you want to connect.
- If the optional third parameter is not specified, PHP uses the
- environment variables ORACLE_SID (Oracle instance) or TWO_TASK
- (tnsnames.ora) to determine which database to connect to.
- </para>
- <para>Connections are shared at the page level when using
- <function>OCILogon</function>. This means that commits and
- rollbacks apply to all open transactions in the page, even if you
- have created multiple connections.
+ <function>OCILogon</function> devuelve el identificador de conexi�n
+ necesario en la mayoria de las funciones OCI. El tercer par�metro, que
+ es opcional, puede contener el nombre de la instancia a Oracle o el nombre
+ dado en el fichero tnsnames.ora de la base de datos a la que nos queremos
+ conectar. Si este par�metro no se especifica, PHP usa la variable de entorno
+ ORACLE_SID (Oracle instance) o TWO_TASK (tnsnames.ora) para determinar la base
+ de datos con la que queremos conectar.
+ </para>
+ <para>Las conexiones son compartidas a nivel de p�gina cuando usemos
+ <function>OCILogon</function>. Lo cual significa que los "commits" y
+ "rollbacks" son aplicadas a todas las transacciones abiertas en la p�gina,
+incluso
+ si usted ha creado conexiones m�ltiples.
</para>
<para>
- This example demonstrates how the connections are shared.
+ Este ejemplo demuestra como son compartidas las conexiones.
<example>
<title>OCILogon</title>
<programlisting>
@@ -330,11 +325,11 @@
<refentry id="function.ociplogon">
<refnamediv>
<refname>OCIPLogon</refname>
- <refpurpose>Connect to an Oracle database and log on using a persistant
connection.
- Returns a new session.</refpurpose>
+ <refpurpose>Conecta con una base de datos Oracle usando una conexi�n persistente.
+ Devuelve una nueva sesi�n.</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCIPLogon</function></funcdef>
@@ -344,27 +339,27 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIPLogon</function> creates a persistent connection to
- an Oracle 8 database and logs on. The optional third parameter
- can either contain the name of the local Oracle instance or the
- name of the entry in tnsnames.ora to which you want to connect.
- If the optional third parameter is not specified, PHP uses the
- environment variables ORACLE_SID (Oracle instance) or TWO_TASK
- (tnsnames.ora) to determine which database to connect to.
+ <function>OCIPLogon</function> crea una conexi�n persistente con
+ una base de datos Oracle 8. El tercer par�metro, que es opcional, puede
+ contener el nombre de la instancia a Oracle o el nombre dado en el fichero
+ tnsnames.ora de la base de datos a la que nos queremos conectar.
+ Si este par�metro no se especifica, PHP usa la variable de entorno
+ ORACLE_SID (Oracle instance) o TWO_TASK (tnsnames.ora) para determinar la base
+ de datos con la que queremos conectar.
</para>
<simpara>
- See also <function>OCILogon</function> and
+ Vea tambi�n <function>OCILogon</function> y
<function>OCINLogon</function>.</simpara>
</refsect1></refentry>
<refentry id="function.ocinlogon">
<refnamediv>
<refname>OCINLogon</refname>
- <refpurpose>Connect to an Oracle database and log on using a new connection.
- Returns a new session.</refpurpose>
+ <refpurpose>Conecta con una base de datos Oracle usando una nueva conexi�n.
+ Devuelve una nueva sesi�n.</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCINLogon</function></funcdef>
@@ -374,25 +369,24 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCINLogon</function> creates a new connection to an
- Oracle 8 database and logs on. The optional third parameter can
- either contain the name of the local Oracle instance or the name
- of the entry in tnsnames.ora to which you want to connect. If
- the optional third parameter is not specified, PHP uses the
- environment variables ORACLE_SID (Oracle instance) or TWO_TASK
- (tnsnames.ora) to determine which database to connect to.
- </para>
- <para>
- <function>OCINLogon</function> forces a new connection. This
- should be used if you need to isolate a set of transactions. By
- default, connections are shared at the page level if using
- <function>OCILogon</function> or at the web server process level
- if using <function>OCIPLogon</function>. If you have multiple
- connections open using <function>OCINLogon</function>, all
- commits and rollbacks apply to the specified connection only.
+ <function>OCINLogon</function> crea una nueva conexi�n con una
+ base de datos Oracle 8. El tercer par�metro, que es opcional, puede
+ contener el nombre de la instancia a Oracle o el nombre dado en el fichero
+ tnsnames.ora de la base de datos a la que nos queremos conectar.
+ Si este par�metro no se especifica, PHP usa la variable de entorno
+ ORACLE_SID (Oracle instance) o TWO_TASK (tnsnames.ora) para determinar la base
+ de datos con la que queremos conectar.
+ </para>
+ <para>
+ <function>OCINLogon</function> fuerza una nueva conexi�n. Se debe usar si
+ necesita aislar un conjunto de transacciones. Por defecto, las conexiones
+ son compartidas a nivel de p�gina si usa <function>OCILogon</function> o
+ a nivel del proceso del servidor web si usa <function>OCIPLogon</function>.
+ Si posee m�ltiples conexiones abiertas usando <function>OCINLogon</function>,
+ todos los "commits" y "rollbacks" se aplican s�lo a la conexion especificada.
</para>
<para>
- This example demonstrates how the connections are separated.
+ Este ejemplo demuestra como las conexiones est�n separadas.
<example>
<title>OCINLogon</title>
<programlisting>
@@ -428,7 +422,6 @@
ociexecute($stmt,OCI_DEFAULT);
echo $conn." deleted hallo\n\n";
}
-
function commit($conn)
{ ocicommit($conn);
echo $conn." commited\n\n";
@@ -484,10 +477,10 @@
<refentry id="function.ocilogoff">
<refnamediv>
<refname>OCILogOff</refname>
- <refpurpose>Disconnects from Oracle</refpurpose>
+ <refpurpose>Termina la conexion con Oracle</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCILogOff</function></funcdef>
@@ -495,7 +488,7 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCILogOff</function> closes an Oracle connection.
+ <function>OCILogOff</function> cierra una conexi�n con Oracle.
</para>
</refsect1>
</refentry>
@@ -503,10 +496,10 @@
<refentry id="function.ociexecute">
<refnamediv>
<refname>OCIExecute</refname>
- <refpurpose>Execute a statement</refpurpose>
+ <refpurpose>Ejecuta una sentencia</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCIExecute</function></funcdef>
@@ -515,11 +508,11 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIExecute</function> executes a previously parsed statement.
- (see <function>OCIParse</function>). The optional <parameter>mode</parameter>
- allows you to specify the execution-mode (default is OCI_COMMIT_ON_SUCCESS).
- If you don't want statements to be commited automaticly specify OCI_DEFAULT
as
- your mode.
+ <function>OCIExecute</function> ejecuta una sentencia previamente analizada.
+ (see <function>OCIParse</function>). El par�metro opcional
+<parameter>mode</parameter>
+ le permite especificar el modo de ejecuci�n (default is OCI_COMMIT_ON_SUCCESS).
+ Si no desea que las sentencias se confirmen automaticamente, especifique
+OCI_DEFAULT como
+ su modo.
</para>
</refsect1>
</refentry>
@@ -527,10 +520,10 @@
<refentry id="function.ocicommit">
<refnamediv>
<refname>OCICommit</refname>
- <refpurpose>Commits outstanding transactions</refpurpose>
+ <refpurpose>Confirma transacciones pendientes</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCICommit</function></funcdef>
@@ -538,8 +531,8 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCICommit</function> commits all outstanding statements for
- Oracle connection <parameter>connection</parameter>.
+ <function>OCICommit</function> confirma todas las sentencias pendientes para la
+conexi�n
+ con Oracle <parameter>connection</parameter>.
</para>
</refsect1>
</refentry>
@@ -547,10 +540,10 @@
<refentry id="function.ocirollback">
<refnamediv>
<refname>OCIRollback</refname>
- <refpurpose>Rolls back outstanding transactions</refpurpose>
+ <refpurpose>Restablece todas las transaciones sin confirmar</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCIRollback</function></funcdef>
@@ -558,8 +551,8 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIRollback</function> rolls back all outstanding statements for
- Oracle connection <parameter>connection</parameter>.
+ <function>OCIRollback</function> restablece todas las transacciones sin confirmar
+ para la conexi�n Oracle <parameter>connection</parameter>.
</para>
</refsect1>
</refentry>
@@ -567,10 +560,10 @@
<refentry id="function.ocinewdescriptor">
<refnamediv>
<refname>OCINewDescriptor</refname>
- <refpurpose>Initialize a new empty descriptor LOB/FILE (LOB is
default)</refpurpose>
+ <refpurpose>Inicializa un nuevo descriptor vac�o LOB/FILE (LOB por
+defecto)</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>string <function>OCINewDescriptor</function></funcdef>
@@ -579,12 +572,12 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCINewDescriptor</function> Allocates storage to hold
- descriptors or LOB locators. Valid values for the valid
- <parameter>type</parameter> are OCI_D_FILE, OCI_D_LOB, OCI_D_ROWID.
- For LOB desriptors, the methods load, save, and savefile are
- associated with the descriptor, for BFILE only the load method exists.
- See the second example usage hints.
+ <function>OCINewDescriptor</function> Reserva espacio para mantener descriptores
+o
+ localizadores LOB. Los valores v�lidos para el tipo
+ <parameter>type</parameter> son OCI_D_FILE, OCI_D_LOB, OCI_D_ROWID.
+ Para descriptores LOB, los m�todos load, save, y savefile est�n asociados
+ con el descriptor, para BFILE s�lo el m�todo load existe.
+ Vea el segundo ejemplo.
</para>
<example>
<title>OCINewDescriptor</title>
@@ -658,10 +651,10 @@
<refentry id="function.ocirowcount">
<refnamediv>
<refname>OCIRowCount</refname>
- <refpurpose>Gets the number of affected rows</refpurpose>
+ <refpurpose>Obtiene el n�mero de filas afectadas</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCIRowCount</function></funcdef>
@@ -669,9 +662,9 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIRowCount</function> returns the number of rows affected
- for eg update-statements. This funtions will not tell you the number
- of rows that a select will return!</para>
+ <function>OCIRowCount</function> devuelve el n�mero de filas afectadas, por ej.
+en
+ sentencias de actualizaci�n. !Esta funci�n no indicar� el n�mero de de filas
+que
+ devuelve una sentencia SELECT!</para>
<para>
<example>
<title>OCIRowCount</title>
@@ -701,10 +694,10 @@
<refentry id="function.ocinumcols">
<refnamediv>
<refname>OCINumCols</refname>
- <refpurpose>Return the number of result columns in a statement</refpurpose>
+ <refpurpose>Devuelve el n�mero de columnas resultantes en una
+sentencia</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCINumCols</function></funcdef>
@@ -712,8 +705,7 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCINumCols</function> returns the number of columns in a
- statement
+ <function>OCINumCols</function> devuelve el n�mero de columnas en una sentencia
</para>
<example>
<title>OCINumCols</title>
@@ -746,10 +738,10 @@
<refentry id="function.ociresult">
<refnamediv>
<refname>OCIResult</refname>
- <refpurpose>Returns coulumn value for fetched row</refpurpose>
+ <refpurpose>Devuelve el valor de una columna en la fila buscada</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>mixed <function>OCIResult</function></funcdef>
@@ -758,10 +750,11 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIResult</function> returns the data for column
- <parameter>column</parameter> in the current row (see
- <function>OCIFetch</function>).<function>OCIResult</function> will
- return everything as strings except for abstract types (ROWIDs, LOBs and
FILEs).
+ <function>OCIResult</function> devuelve el valor de la columna
+ <parameter>column</parameter> de la fila actual (vea
+ <function>OCIFetch</function>).<function>OCIResult</function> devolver�
+ todo como una cadena excepto para los tipo de datos abstractos
+ (ROWIDs, LOBs and FILEs).
</para>
</refsect1>
</refentry>
@@ -769,10 +762,10 @@
<refentry id="function.ocifetch">
<refnamediv>
<refname>OCIFetch</refname>
- <refpurpose>Fetches the next row into result-buffer</refpurpose>
+ <refpurpose>Busca la siguiente fila en el result-buffer</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCIFetch</function></funcdef>
@@ -780,8 +773,8 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIFetch</function> fetches the next row (for SELECT statements)
- into the internal result-buffer.
+ <function>OCIFetch</function> Busca la siguiente fila (para sentencias SELECT)
+ dentro del result-buffer interno.
</para>
</refsect1>
</refentry>
@@ -789,10 +782,10 @@
<refentry id="function.ocifetchinto">
<refnamediv>
<refname>OCIFetchInto</refname>
- <refpurpose>Fetches the next row into result-array</refpurpose>
+ <refpurpose>Busca la siguiente fila dentro del result-array</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCIFetchInto</function></funcdef>
@@ -802,38 +795,39 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIFetchInto</function> fetches the next row (for SELECT statements)
- into the <parameter>result</parameter> array.
<function>OCIFetchInto</function>
- will overwrite the previous content of <parameter>result</parameter>. By
default
- <parameter>result</parameter> will contain a one-based array of all columns
- that are not NULL.
- </para>
- <para>
- The <parameter>mode</parameter> parameter allows you to change the default
- behaviour. You can specify more than one flag by simply addig them up
- (eg OCI_ASSOC+OCI_RETURN_NULLS). The known flags are:
+ <function>OCIFetchInto</function> busca la siguiente fila (for SELECT statements)
+ dentro del array <parameter>result</parameter>. <function>OCIFetchInto</function>
+ sobreescribir� el contenido previo de <parameter>result</parameter>. Por defecto
+ <parameter>result</parameter> contendr� un array basado en todas las columnas que
+ no son NULL.
+ </para>
+ <para>
+ El par�metro <parameter>mode</parameter> le permite cambiar el comportamineto
+por
+ defecto. Puede especificar m�s de una flag simplemente a�adiendolas
+ (ej. OCI_ASSOC+OCI_RETURN_NULLS). Las flags son:
<simplelist>
- <member><literal>OCI_ASSOC</literal> Return an associative array.</member>
- <member><literal>OCI_NUM</literal> Return an numbered array
- starting with one. (DEFAULT)</member>
- <member><literal>OCI_RETURN_NULLS</literal> Return empty columns.</member>
- <member><literal>OCI_RETURN_LOBS</literal> Return the value of a LOB instead of
the desxriptor.</member>
+ <member><literal>OCI_ASSOC</literal> Devuelve un array asociativo.</member>
+ <member><literal>OCI_NUM</literal> Devuelve un array numerado empezando en 1.
+ (POR DEFECTO)</member>
+ <member><literal>OCI_RETURN_NULLS</literal> Devuelve columnas vacias.</member>
+ <member><literal>OCI_RETURN_LOBS</literal> Devuelve el valor de un LOB en vez de
+ el descriptor.</member>
</simplelist>
- </para>
- <para>
- </para>
+ </para>
+ <para>
+ </para>
</refsect1>
</refentry>
<refentry id="function.ocifetchstatement">
<refnamediv>
<refname>OCIFetchStatement</refname>
- <refpurpose>Fetch all rows of result data into an array.</refpurpose>
+ <refpurpose>Busca todas la filas de un resultset dentro de un array.</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCIFetchStatement</function></funcdef>
@@ -842,9 +836,9 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIFetchStatement</function> fetches all the rows from a
- result into a user-defined array. <function>OCIFetchStatement</function>
- returns the number of rows fetched.
+ <function>OCIFetchStatement</function> busca todas las filas de un resultset
+ dentro de un array definido por el usuario.
+<function>OCIFetchStatement</function>
+ devuelve el numero de filas buscadas.
</para>
<example>
<title>OCIFetchStatement</title>
@@ -892,10 +886,10 @@
<refentry id="function.ocicolumnisnull">
<refnamediv>
<refname>OCIColumnIsNULL</refname>
- <refpurpose>test whether a result column is NULL</refpurpose>
+ <refpurpose>comprueba si una una columna es NULL</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCIColumnIsNULL</function></funcdef>
@@ -904,11 +898,10 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIColumnIsNULL</function> returns true if the returned
- column <parameter>column</parameter> in the result from the
- statement <parameter>stmt</parameter> is NULL. You can either use
- the column-number (1-Based) or the column-name for the
<parameter>col</parameter>
- parameter.
+ <function>OCIColumnIsNULL</function> devuelve vedadero si la columna devuelta
+ <parameter>column</parameter> en el resultset de la sentencia
+<parameter>stmt</parameter>
+ es NULL. Puede usar el n�mero de la columna (1-Based) o el nombre de la columa
+ indicado por el par�metro <parameter>col</parameter>.
</para>
</refsect1>
</refentry>
@@ -917,10 +910,10 @@
<refentry id="function.ocicolumnsize">
<refnamediv>
<refname>OCIColumnSize</refname>
- <refpurpose>return result column size</refpurpose>
+ <refpurpose>devuelve el tama�o de la columna</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCIColumnSize</function></funcdef>
@@ -929,10 +922,9 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIColumnSize</function> returns the size of the column
- as given by Oracle. You can either use
- the column-number (1-Based) or the column-name for the
<parameter>col</parameter>
- parameter.
+ <function>OCIColumnSize</function> devuelve el tama�o de la columna indicada por
+Oracle
+ Puede utilizar el n�mero de la columna (1-Based) o el nombre indicado en el
+par�metro
+ <parameter>col</parameter>.
</para>
<para>
<example>
@@ -970,18 +962,19 @@
</example>
</para>
<simpara>
- See also <function>OCINumCols</function>, <function>OCIColumnName</function>,
- and <function>OCIColumnSize</function>.</simpara>
+ Vea tambi�n <function>OCINumCols</function>, <function>OCIColumnName</function>,
+ y <function>OCIColumnSize</function>.</simpara>
</refsect1>
</refentry>
<refentry id="function.ociserverversion">
<refnamediv>
<refname>OCIServerVersion</refname>
- <refpurpose>Return a string containing server version information.</refpurpose>
+ <refpurpose>Devuelve una cadena conteniendo informaci�n a cerca de la version del
+servidor.
+ </refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>string <function>OCIServerVersion</function></funcdef>
@@ -1004,10 +997,10 @@
<refentry id="function.ocistatementtype">
<refnamediv>
<refname>OCIStatementType</refname>
- <refpurpose>Return the type of an OCI statement.</refpurpose>
+ <refpurpose>Devuelve el tipo de una sentencia OCI.</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>string <function>OCIStatementType</function></funcdef>
@@ -1015,18 +1008,18 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIStatementType</function> returns on of the following values:
+ <function>OCIStatementType</function> devuelve uno de los siguiente valores:
<orderedlist>
- <listitem><simpara> "SELECT"</simpara></listitem>
- <listitem><simpara> "UPDATE"</simpara></listitem>
- <listitem><simpara> "DELETE"</simpara></listitem>
- <listitem><simpara> "INSERT"</simpara></listitem>
- <listitem><simpara> "CREATE"</simpara></listitem>
- <listitem><simpara> "DROP"</simpara></listitem>
- <listitem><simpara> "ALTER"</simpara></listitem>
- <listitem><simpara> "BEGIN"</simpara></listitem>
- <listitem><simpara> "DECLARE"</simpara></listitem>
- <listitem><simpara> "UNKNOWN"</simpara></listitem>
+ <listitem><simpara> "SELECT"</simpara></listitem>
+ <listitem><simpara> "UPDATE"</simpara></listitem>
+ <listitem><simpara> "DELETE"</simpara></listitem>
+ <listitem><simpara> "INSERT"</simpara></listitem>
+ <listitem><simpara> "CREATE"</simpara></listitem>
+ <listitem><simpara> "DROP"</simpara></listitem>
+ <listitem><simpara> "ALTER"</simpara></listitem>
+ <listitem><simpara> "BEGIN"</simpara></listitem>
+ <listitem><simpara> "DECLARE"</simpara></listitem>
+ <listitem><simpara> "UNKNOWN"</simpara></listitem>
</orderedlist></para>
<para>
<example>
@@ -1053,10 +1046,11 @@
<refentry id="function.ocinewcursor">
<refnamediv>
<refname>OCINewCursor</refname>
- <refpurpose>return a new cursor (Statement-Handle) - use this to bind
ref-cursors!</refpurpose>
+ <refpurpose>devuelve un cursor nuevo (Statement-Handle) - use esto para enlazar
+ ref-cursors!</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCINewCursor</function></funcdef>
@@ -1069,7 +1063,7 @@
</para>
<para>
<example>
- <title>Using a REF CURSOR from a stored procedure</title>
+ <title>Usando un REF CURSOR de un procedimiento almacenado</title>
<programlisting>
<?php
// suppose your stored procedure info.output returns a ref cursor in :data
@@ -1095,7 +1089,7 @@
</para>
<para>
<example>
- <title>Using a REF CURSOR in a select statement</title>
+ <title>Usando un REF CURSOR en una sentencia select</title>
<programlisting>
<?php
print "<HTML><BODY>";
@@ -1139,10 +1133,10 @@
<refentry id="function.ocifreestatement">
<refnamediv>
<refname>OCIFreeStatement</refname>
- <refpurpose>Free all resources associated with a statement.</refpurpose>
+ <refpurpose>Libera todos los recursos asociados con una sentencia.</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCIFreeStatement</function></funcdef>
@@ -1150,8 +1144,8 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIFreeStatement</function> returns true if successful, or false if
- unsuccessful.
+ <function>OCIFreeStatement</function> devuelve cierto si la operacion se lleva a
+cabo,
+ o falso en caso contrario.
</para>
</refsect1>
</refentry>
@@ -1159,10 +1153,10 @@
<refentry id="function.ocifreecursor">
<refnamediv>
<refname>OCIFreeCursor</refname>
- <refpurpose>Free all resources associated with a cursor.</refpurpose>
+ <refpurpose>Libera todos los recursos asociados con cursor.</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCIFreeCursor</function></funcdef>
@@ -1170,8 +1164,8 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIFreeCursor</function> returns true if successful, or false if
- unsuccessful.
+ <function>OCIFreeCursor</function> devuelve cierto si la operacion se lleva a
+cabo,
+ o falso en caso contrario.
</para>
</refsect1>
</refentry>
@@ -1179,10 +1173,10 @@
<refentry id="function.ocicolumnname">
<refnamediv>
<refname>OCIColumnName</refname>
- <refpurpose>Returns the name of a column.</refpurpose>
+ <refpurpose>Devuelve el nombre de una columna.</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>string <function>OCIColumnName</function></funcdef>
@@ -1191,9 +1185,9 @@
</funcprototype>
</funcsynopsis>
<simpara>
- <function>OCIColumnName</function> returns the name of the column
- corresponding to the column number (1-based) that is passed in.</simpara>
-
+ <function>OCIColumnName</function> Devuelve el nombre de la columna
+ correspondiente al n�mero de la columna (1-based) que es pasado.
+ </simpara>
<para>
<example>
<title>OCIColumnName</title>
@@ -1229,18 +1223,18 @@
</example>
</para>
<simpara>
- See also <function>OCINumCols</function>, <function>OCIColumnType</function>,
- and <function>OCIColumnSize</function>.</simpara>
+ Vea tambi�n <function>OCINumCols</function>, <function>OCIColumnType</function>,
+ y <function>OCIColumnSize</function>.</simpara>
</refsect1>
</refentry>
<refentry id="function.ocicolumntype">
<refnamediv>
<refname>OCIColumnType</refname>
- <refpurpose>Returns the data type of a column.</refpurpose>
+ <refpurpose>Devuelve el tipo de dato de una columna.</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>mixed <function>OCIColumnType</function></funcdef>
@@ -1249,8 +1243,8 @@
</funcprototype>
</funcsynopsis>
<simpara>
- <function>OCIColumnType</function> returns the data type of the column
- corresponding to the column number (1-based) that is passed in.</simpara>
+ <function>OCIColumnType</function> devuelve el tipo de dato de una columna
+ correspondiente al n�mero de la columna (1-based) que es pasado.</simpara>
<para>
<example>
@@ -1287,18 +1281,18 @@
</example>
</para>
<simpara>
- See also <function>OCINumCols</function>, <function>OCIColumnName</function>,
- and <function>OCIColumnSize</function>.</simpara>
+ Vea tambi�n <function>OCINumCols</function>, <function>OCIColumnName</function>,
+ y <function>OCIColumnSize</function>.</simpara>
</refsect1>
</refentry>
<refentry id="function.ociparse">
<refnamediv>
<refname>OCIParse</refname>
- <refpurpose>Parse a query and return a statement</refpurpose>
+ <refpurpose>Analiza una consulta y devuelve una sentencia</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>OCIParse</function></funcdef>
@@ -1307,22 +1301,22 @@
</funcprototype>
</funcsynopsis>
<simpara>
- <function>OCIParse</function> parses the <parameter>query</parameter>
- using <parameter>conn</parameter>. It returns the statement
- identity if the query is valid, false if not. The
- <parameter>query</parameter> can be any valid SQL statement.
+ <function>OCIParse</function> analiza la <parameter>query</parameter>
+ usando <parameter>conn</parameter>. Devuelve el identificador de la sentencia
+ si la consulta es v�lida, y falso si no lo es. La
+ <parameter>query</parameter> puede ser cualquier sentencia SQL v�lida.
</simpara>
</refsect1>
</refentry>
<refentry id="function.ocierror">
<refnamediv>
<refname>OCIError</refname>
- <refpurpose>Return the last error of stmt|conn|global.
- If no error happened returns false.
+ <refpurpose>Devuelve el �ltimo error de stmt|conn|global.
+ Si no ocurre ning�n error devuelve falso.
</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>array <function>OCIError</function></funcdef>
@@ -1332,14 +1326,13 @@
</funcprototype>
</funcsynopsis>
<simpara>
- <function>OCIError</function> returns the last error found. If
- the optional <parameter>stmt|conn|global</parameter> is not
- provided, the last error encountered is returned. If no error is
- found, <function>OCIError</function> returns
- false. <function>OCIError</function> returns the error as an
- associative array. In this array, <parameter>code</parameter>
- consists the oracle error code and <parameter>message</parameter>
- the oracle errorstring.
+ <function>OCIError</function> devuelve el �ltimo error encontrado. Si
+ el par�metro opcional <parameter>stmt|conn|global</parameter> no es usado,
+ es devuelto el �ltimo error encontrado. Si no se encuentra ning�n error,
+ <function>OCIError</function> devuelve falso.
+ <function>OCIError</function> devuelve el error como un array asociativo.
+ En este array, <parameter>code</parameter> consiste en el c�digo de error de
+Oracle
+ y <parameter>message</parameter> en la cadena de descripci�n del error.
</simpara>
</refsect1>
</refentry>
@@ -1348,12 +1341,12 @@
<refnamediv>
<refname>OCIInternalDebug</refname>
<refpurpose>
- Enables or disables internal debug output. By default it is
- disabled
+ Habilita o deshabilita la salida del depurador interno. Por defecto este est�
+ deshabiltado
</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripci�n</title>
<funcsynopsis>
<funcprototype>
<funcdef>void <function>OCIInternalDebug</function></funcdef>
@@ -1361,8 +1354,9 @@
</funcprototype>
</funcsynopsis>
<simpara>
- <function>OCIInternalDebug</function> enables internal debug output. Set
<parameter>onoff</parameter>
- to 0 to turn debug output off, 1 to turn it on.</simpara>
+ <function>OCIInternalDebug</function> habilita la salida del depurador interno.
+ Asigne 0 a <parameter>onoff</parameter> para deshabilitar la salida y 1
+ para habilitarla.</simpara>
</refsect1>
</refentry>
</reference>
@@ -1383,3 +1377,4 @@
sgml-local-ecat-files:nil
End:
-->
+