cvs: phpdoc /hu/functions oci8.xml
| From: | Gabor Hojtsy | Date: | Fri, 29 Mar 2002 18:33:26 +0000 |
| Subject: | cvs: phpdoc /hu/functions oci8.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969343775@lists.php.net to get a copy of this message | ||
goba Fri Mar 29 13:33:26 2002 EDT
Modified files:
/phpdoc/hu/functions oci8.xml
Log:
Absolutely up to date translation, ready for the readers
Index: phpdoc/hu/functions/oci8.xml diff -u phpdoc/hu/functions/oci8.xml:1.5 phpdoc/hu/functions/oci8.xml:1.6 --- phpdoc/hu/functions/oci8.xml:1.5 Fri Mar 29 09:48:23 2002 +++ phpdoc/hu/functions/oci8.xml Fri Mar 29 13:33:26 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.44 Maintainer: goba Status: half translated --> +<!-- EN-Revision: 1.45 Maintainer: goba Status: ready --> <reference id="ref.oci8"> <title>Oracle 8 függvények</title> <titleabbrev>OCI8</titleabbrev> @@ -647,7 +647,7 @@ <refentry id="function.ociexecute"> <refnamediv> <refname>OCIExecute</refname> - <refpurpose>Execute a statement</refpurpose> + <refpurpose>Parancs futtatása</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -657,12 +657,13 @@ <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> </methodsynopsis> <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 committed automatically specify OCI_DEFAULT as - your mode. + Az <function>OCIExecute</function> futtat egy korábban feldolgozott + parancsot. (Lásd az <function>OCIParse</function> függvényt.) + Az opcionális <parameter>mode</parameter> paraméterrel tudod + beállítani a végrehajtás módját. Az alapértelmezés az + OCI_COMMIT_ON_SUCCESS. Ha nem szeretnéd, hogy a parancs + rögtön egy tranzakció végrehajtást is végezzen, add meg + az OCI_DEFAULT módot. </para> <para> &return.success; @@ -673,7 +674,7 @@ <refentry id="function.ocicommit"> <refnamediv> <refname>OCICommit</refname> - <refpurpose>Commits outstanding transactions</refpurpose> + <refpurpose>Függõben lévõ tranzakciók végrehajtása</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -682,8 +683,9 @@ <methodparam><type>int</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> - <function>OCICommit</function> commits all outstanding statements - for Oracle connection <parameter>connection</parameter>. + Az <function>OCICommit</function> minden a + <parameter>connection</parameter> Oracle kapcsolaton + függõben lévõ tranzakciót végrehajt. </para> </refsect1> </refentry> @@ -691,7 +693,7 @@ <refentry id="function.ocirollback"> <refnamediv> <refname>OCIRollback</refname> - <refpurpose>Rolls back outstanding transactions</refpurpose> + <refpurpose>Függõben lévõ tranzakciók visszavonása</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -700,8 +702,9 @@ <methodparam><type>int</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> - <function>OCIRollback</function> rolls back all outstanding - statements for Oracle connection <parameter>connection</parameter>. + Az <function>OCIRollback</function> minden a + <parameter>connection</parameter> Oracle kapcsolaton + függõben lévõ tranzakciót visszavon. </para> </refsect1> </refentry> @@ -710,7 +713,7 @@ <refnamediv> <refname>OCINewDescriptor</refname> <refpurpose> - Initialize a new empty descriptor LOB/FILE (LOB is default) + Egy új üres LOB vagy FILE leírót hoz létre </refpurpose> </refnamediv> <refsect1> @@ -721,42 +724,44 @@ <methodparam choice="opt"><type>int</type><parameter>type</parameter></methodparam> </methodsynopsis> <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 descriptors, the methods load, save, and savefile are - associated with the descriptor, for BFILE only the load method - exists. See the second example usage hints. + Az <function>OCINewDescriptor</function> tárterületet foglal + le leírók vagy LOB lokátorok tárolására. A + <parameter>type</parameter> lehetséges értékei OCI_D_FILE, + OCI_D_LOB és OCI_D_ROWID. LOB leírók esetén a a load, save + és savefile metódusokat használhatod, a BFILE csak a + load metódust támogatja. Lásd a második példa használati + tippjeit. </para> <example> <title>OCINewDescriptor</title> <programlisting> <![CDATA[ -<?php - /* This script is designed to be called from a HTML form. - * It expects $user, $password, $table, $where, and $commitsize - * to be passed in from the form. The script then deletes - * the selected rows using the ROWID and commits after each - * set of $commitsize rows. (Use with care, there is no rollback) +<?php + /* Ez a program ûrlapból történõ meghíváshoz készült. + * A $felhasznalo, $jelszo, $tabla, $where és $commitmeret + * értékeket várja az ûrlapból. A program letörli a kiválasztott + * sorokat a ROWID felhasználásval, és minden $commitmeret sor + * után egy tranzakció végrehajtást eszközöl. Használd óvatosan, + * a mûveletek nem visszavonhatóak. */ - $conn = OCILogon($user, $password); - $stmt = OCIParse($conn,"select rowid from $table $where"); + $conn = OCILogon($felhasznalo, $jelszo); + $stmt = OCIParse($conn,"select rowid from $tabla $where"); $rowid = OCINewDescriptor($conn,OCI_D_ROWID); - OCIDefineByName($stmt,"ROWID",&$rowid); + OCIDefineByName($stmt,"ROWID",&$rowid); OCIExecute($stmt); - while ( OCIFetch($stmt) ) { - $nrows = OCIRowCount($stmt); - $delete = OCIParse($conn,"delete from $table where ROWID = :rid"); + while ( OCIFetch($stmt) ) { + $sorokszama = OCIRowCount($stmt); + $delete = OCIParse($conn,"delete from $tabla where ROWID = :rid"); OCIBindByName($delete,":rid",&$rowid,-1,OCI_B_ROWID); - OCIExecute($delete); - print "$nrows\n"; - if ( ($nrows % $commitsize) == 0 ) { - OCICommit($conn); - } + OCIExecute($delete); + print "$sorokszama\n"; + if ( ($sorokszama % $commitmeret) == 0 ) { + OCICommit($conn); + } } - $nrows = OCIRowCount($stmt); - print "$nrows deleted...\n"; - OCIFreeStatement($stmt); + $sorokszama = OCIRowCount($stmt); + print "$sorokszama sor törölve...\n"; + OCIFreeStatement($stmt); OCILogoff($conn); ?> ]]> @@ -764,32 +769,37 @@ <programlisting> <![CDATA[ <?php - /* This script demonstrates file upload to LOB columns - * The formfield used for this example looks like this - * <form action="upload.php3" method="post" enctype="multipart/form-data"> + /* Ez a program LOB mezõbe állomány feltöltést mutat be. + * Az ûrlapmezõ, amit a példa feltételez a következõ: + * <form action="upload.php" method="post" enctype="multipart/form-data"> * <input type="file" name="lob_upload"> * ... */ if(!isset($lob_upload) || $lob_upload == 'none'){ ?> -<form action="upload.php3" method="post" enctype="multipart/form-data"> +<form action="upload.php" method="post" enctype="multipart/form-data"> Upload file: <input type="file" name="lob_upload"><br> -<input type="submit" value="Upload"> - <input type="reset"> +<input type="submit" value="Feltöltés"> - <input type="reset"> </form> <?php } else { - // $lob_upload contains the temporary filename of the uploaded file - $conn = OCILogon($user, $password); + + // $lob_upload tartalmazza a feltöltött file ideiglenes állomány nevét + + // lásd még az állomány feltöltésrõl szóló részt biztonságos + // file feltöltés példák érdekében + + $conn = OCILogon($felhasznalo, $jelszo); $lob = OCINewDescriptor($conn, OCI_D_LOB); - $stmt = OCIParse($conn,"insert into $table (id, the_blob) - values(my_seq.NEXTVAL, EMPTY_BLOB()) returning the_blob into :the_blob"); - OCIBindByName($stmt, ':the_blob', &$lob, -1, OCI_B_BLOB); + $stmt = OCIParse($conn,"insert into $tabla (id, a_blob) + values(my_seq.NEXTVAL, EMPTY_BLOB()) returning a_blob into :a_blob"); + OCIBindByName($stmt, ':a_blob', &$lob, -1, OCI_B_BLOB); OCIExecute($stmt, OCI_DEFAULT); if($lob->savefile($lob_upload)){ OCICommit($conn); - echo "Blob successfully uploaded\n"; + echo "A Blob feltöltése sikeres\n"; }else{ - echo "Couldn't upload Blob\n"; + echo "Nem sikerült feltölteni a Blobot\n"; } OCIFreeDesc($lob); OCIFreeStatement($stmt); @@ -804,24 +814,23 @@ <programlisting> <![CDATA[ <?php - /* Calling PL/SQL stored procedures which contain clobs as input - * parameters (PHP 4 >= 4.0.6). - * Example PL/SQL stored procedure signature is: + /* PL/SQL tárolt eljárások hívása, amik clobs bemeneti paramétereket + * tartalmaznak (PHP 4 >= 4.0.6). * - * PROCEDURE save_data - * Argument Name Type In/Out Default? - * ------------------------------ ----------------------- ------ -------- - * KEY NUMBER(38) IN - * DATA CLOB IN + * PROCEDURE adat_mentes + * Argumentum neve Típus KI/BE Alapérték + * ------------------------------ ----------------------- ------ --------- + * KULCS NUMBER(38) BE + * ADAT CLOB BE * */ - $conn = OCILogon($user, $password); - $stmt = OCIParse($conn, "begin save_data(:key, :data); end;"); + $conn = OCILogon($felhasznalo, $jelszo); + $stmt = OCIParse($conn, "begin adat_mentes(:kulcs, :adat); end;"); $clob = OCINewDescriptor($conn, OCI_D_LOB); - OCIBindByName($stmt, ':key', $key); - OCIBindByName($stmt, ':data', $clob, -1, OCI_B_CLOB); - $clob->WriteTemporary($data); + OCIBindByName($stmt, ':kulcs', $kulcs); + OCIBindByName($stmt, ':adat', $clob, -1, OCI_B_CLOB); + $clob->WriteTemporary($adat); OCIExecute($stmt, OCI_DEFAULT); OCICommit($conn); $clob->close(); @@ -837,7 +846,7 @@ <refentry id="function.ocirowcount"> <refnamediv> <refname>OCIRowCount</refname> - <refpurpose>Gets the number of affected rows</refpurpose> + <refpurpose>Az érintett sorok száma</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -846,9 +855,10 @@ <methodparam><type>int</type><parameter>statement</parameter></methodparam> </methodsynopsis> <para> - <function>OCIRowCount</function> returns the number of rows affected - for eg update-statements. This function will not tell you the number - of rows that a select will return!</para> + Az <function>OCIRowCount</function> visszaadja az érintett sorok + számát például egy update parancs után. Ez a függvény nem adja + vissza a select lekérdezés által visszaadott sorok számát! + </para> <para> <example> <title>OCIRowCount</title> @@ -857,16 +867,16 @@ <?php print "<HTML><PRE>"; $conn = OCILogon("scott","tiger"); - $stmt = OCIParse($conn,"create table emp2 as select * from emp"); + $stmt = OCIParse($conn,"create table dolgozok2 as select * from dolgozok"); OCIExecute($stmt); - print OCIRowCount($stmt) . " rows inserted.<BR>"; + print OCIRowCount($stmt) . " sor beillesztve.<BR>"; OCIFreeStatement($stmt); - $stmt = OCIParse($conn,"delete from emp2"); + $stmt = OCIParse($conn,"delete from dolgozok2"); OCIExecute($stmt); - print OCIRowCount($stmt) . " rows deleted.<BR>"; + print OCIRowCount($stmt) . " sor törölve.<BR>"; OCICommit($conn); OCIFreeStatement($stmt); - $stmt = OCIParse($conn,"drop table emp2"); + $stmt = OCIParse($conn,"drop table dolgozok2"); OCIExecute($stmt); OCIFreeStatement($stmt); OCILogOff($conn); @@ -883,7 +893,7 @@ <refnamediv> <refname>OCINumCols</refname> <refpurpose> - Return the number of result columns in a statement + Az eredményoszlopok száma egy eredménytáblában </refpurpose> </refnamediv> <refsect1> @@ -893,32 +903,32 @@ <methodparam><type>int</type><parameter>stmt</parameter></methodparam> </methodsynopsis> <para> - <function>OCINumCols</function> returns the number of columns in a - statement + Az <function>OCINumCols</function> visszaadja az eredménytábla + oszlopainak a számát. </para> <example> <title>OCINumCols</title> <programlisting> <![CDATA[ <?php - print "<HTML><PRE>\n"; + print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); - $stmt = OCIParse($conn,"select * from emp"); + $stmt = OCIParse($conn,"select * from dolgozok"); OCIExecute($stmt); while ( OCIFetch($stmt) ) { - print "\n"; + print "\n"; $ncols = OCINumCols($stmt); for ( $i = 1; $i <= $ncols; $i++ ) { - $column_name = OCIColumnName($stmt,$i); - $column_value = OCIResult($stmt,$i); - print $column_name . ': ' . $column_value . "\n"; + $oszlop_neve = OCIColumnName($stmt,$i); + $mezo_erteke = OCIResult($stmt,$i); + print $oszlop_neve . ': ' . $mezo_erteke . "\n"; } print "\n"; } - OCIFreeStatement($stmt); - OCILogoff($conn); + OCIFreeStatement($stmt); + OCILogoff($conn); print "</PRE>"; - print "</HTML>\n"; + print "</HTML>\n"; ?> ]]> </programlisting> @@ -929,7 +939,7 @@ <refentry id="function.ociresult"> <refnamediv> <refname>OCIResult</refname> - <refpurpose>Returns column value for fetched row</refpurpose> + <refpurpose>Mezõ értékének visszaadása lekérdezett sorból</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -939,11 +949,11 @@ <methodparam><type>mixed</type><parameter>column</parameter></methodparam> </methodsynopsis> <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). + Az <function>OCIResult</function> a <parameter>column</parameter> + oszlopban lévõ adatot adja vissza az aktuális sorban. Lásd az + <function>OCIFetch</function> függvényt. Az <function>OCIResult</function> + mindent karaktersorozatként ad vissza, kivéve az absztrakt + adattípusokat (ROWID, LOB és FILE típusok). </para> </refsect1> </refentry> @@ -951,7 +961,7 @@ <refentry id="function.ocifetch"> <refnamediv> <refname>OCIFetch</refname> - <refpurpose>Fetches the next row into result-buffer</refpurpose> + <refpurpose>A következõ eredmény sor lekérdezése</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -960,8 +970,9 @@ <methodparam><type>int</type><parameter>statement</parameter></methodparam> </methodsynopsis> <para> - <function>OCIFetch</function> fetches the next row (for SELECT - statements) into the internal result-buffer. + Az <function>OCIFetch</function> lekérdezi a következõ eredménytábla + sort, és egy belsõ eredmény bufferbe helyezi. SELECT parancsok + eredménytábláján használható. </para> </refsect1> </refentry> @@ -969,7 +980,7 @@ <refentry id="function.ocifetchinto"> <refnamediv> <refname>OCIFetchInto</refname> - <refpurpose>Fetches the next row into result-array</refpurpose> + <refpurpose>A következõ sor lekérdezése tömbbe</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -980,32 +991,31 @@ <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> </methodsynopsis> <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 zero-based array of all - columns that are not &null;. + Az <function>OCIFetchInto</function> lekérdezi a következõ sort, és + a <parameter>result</parameter> tömbbe tölti be. SELECT parancsok + eredménytábláján használható. A függvény felülírja a + <parameter>result</parameter> korábbi tartalmát, ha volt ilyen. + Alapértelmezésben a <parameter>result</parameter> egy számindexes + tömb lesz minden mezõértékkel, ami nem &null;. </para> <para> - The <parameter>mode</parameter> parameter allows you to change the - default behaviour. You can specify more than one flag by simply - adding them up (eg OCI_ASSOC+OCI_RETURN_NULLS). The known flags - are: + A <parameter>mode</parameter> paraméterrel tudod szabályozni + a result szerkezetét és tartalmát. Több opciót is megadhatsz, + egyszerû összeadással, például írhatod, hogy + OCI_ASSOC + OCI_RETURN_NULLS. A használható opciók: <simplelist> <member> - <literal>OCI_ASSOC</literal> Return an associative array. + <literal>OCI_ASSOC</literal> Asszociatív tömb formátum. </member> <member> - <literal>OCI_NUM</literal> Return an numbered array starting with - zero. (DEFAULT) + <literal>OCI_NUM</literal> Számindexes tömb formátum (alapértelmezés). </member> <member> - <literal>OCI_RETURN_NULLS</literal> Return empty columns. + <literal>OCI_RETURN_NULLS</literal> A &null; értékû mezõk visszaadása. </member> <member> - <literal>OCI_RETURN_LOBS</literal> Return the value of a LOB - instead of the descriptor. + <literal>OCI_RETURN_LOBS</literal> A LOB érték visszaadása a + leíró helyett. </member> </simplelist> </para> @@ -1015,7 +1025,7 @@ <refentry id="function.ocifetchstatement"> <refnamediv> <refname>OCIFetchStatement</refname> - <refpurpose>Fetch all rows of result data into an array.</refpurpose> + <refpurpose>Miden eredménysor lekérdezése egy tömbbe</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1025,47 +1035,46 @@ <methodparam><type>array &</type><parameter>variable</parameter></methodparam> </methodsynopsis> <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. + Az <function>OCIFetchStatement</function> lekérdezi az összes eredménysort, + és egy PHP tömbbe helyezi. A függvény a lekrédezett sorok számával tér + vissza. </para> <example> <title>OCIFetchStatement</title> <programlisting> <![CDATA[ <?php -/* OCIFetchStatement example mbritton@verinet.com (990624) */ +/* OCIFetchStatement példa - mbritton@verinet.com (990624) */ $conn = OCILogon("scott","tiger"); -$stmt = OCIParse($conn,"select * from emp"); +$stmt = OCIParse($conn,"select * from dolgozok"); OCIExecute($stmt); -$nrows = OCIFetchStatement($stmt,$results); -if ( $nrows > 0 ) { +$sorokszama = OCIFetchStatement($stmt, $tabla); +if ( $sorokszama > 0 ) { print "<TABLE BORDER=\"1\">\n"; print "<TR>\n"; - while ( list( $key, $val ) = each( $results ) ) { - print "<TH>$key</TH>\n"; + while ( list( $kulcs, $ertek ) = each( $tabla ) ) { + print "<TH>$kulcs</TH>\n"; } print "</TR>\n"; - for ( $i = 0; $i < $nrows; $i++ ) { - reset($results); + for ( $i = 0; $i < $sorokszama; $i++ ) { + reset($tabla); print "<TR>\n"; - while ( $column = each($results) ) { - $data = $column['value']; - print "<TD>$data[$i]</TD>\n"; + while ( $mezo = each($tabla) ) { + $adat = $mezo['value']; + print "<TD>$adat[$i]</TD>\n"; } print "</TR>\n"; } print "</TABLE>\n"; } else { - echo "No data found<BR>\n"; + echo "Nincs adat a táblában<BR>\n"; } -print "$nrows Records Selected<BR>\n"; +print "$sorokszama sort sikerült lekérdezni<BR>\n"; OCIFreeStatement($stmt); OCILogoff($conn); @@ -1079,7 +1088,7 @@ <refentry id="function.ocicolumnisnull"> <refnamediv> <refname>OCIColumnIsNULL</refname> - <refpurpose>test whether a result column is &null;</refpurpose> + <refpurpose>&null; értékû mezõ azonosítása</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1089,11 +1098,11 @@ <methodparam><type>mixed</type><parameter>column</parameter></methodparam> </methodsynopsis> <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. + Az <function>OCIColumnIsNULL</function> &true; értéket ad vissza, ha + a visszaadott <parameter>column</parameter> mezõ az + <parameter>stmt</parameter> eredménytáblájában &null; értékû. + Használhatod az oszlop sorszámot (1-tõl számozva), vagy + az oszlop nevét a <parameter>col</parameter> paraméterben. </para> </refsect1> </refentry> @@ -1101,7 +1110,7 @@ <refentry id="function.ocicolumnname"> <refnamediv> <refname>OCIColumnName</refname> - <refpurpose>Returns the name of a column.</refpurpose> + <refpurpose>Oszlop neve egy eredménytáblában</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1111,8 +1120,10 @@ <methodparam><type>int</type><parameter>col</parameter></methodparam> </methodsynopsis> <simpara> - <function>OCIColumnName</function> returns the name of the column - corresponding to the column number (1-based) that is passed in. + Az <function>OCIColumnName</function> visszaadja a + <parameter>col</parameter> paraméterben megadott oszlop + nevét. A <parameter>col</parameter> egy sorszám, a számozás + 1-tõl kezdõdik. </simpara> <para> <example> @@ -1122,25 +1133,26 @@ <?php print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); - $stmt = OCIParse($conn,"select * from emp"); + $stmt = OCIParse($conn,"select * from dolgozok"); OCIExecute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; - print "<TH>Name</TH>"; - print "<TH>Type</TH>"; - print "<TH>Length</TH>"; + print "<TH>Név</TH>"; + print "<TH>Típus</TH>"; + print "<TH>Méret</TH>"; print "</TR>"; - $ncols = OCINumCols($stmt); - for ( $i = 1; $i <= $ncols; $i++ ) { - $column_name = OCIColumnName($stmt,$i); - $column_type = OCIColumnType($stmt,$i); - $column_size = OCIColumnSize($stmt,$i); + $oszlopszam = OCINumCols($stmt); + for ( $i = 1; $i <= $oszlopszam; $i++ ) { + $oszlopnev = OCIColumnName($stmt,$i); + $oszloptipus = OCIColumnType($stmt,$i); + $oszlopmeret = OCIColumnSize($stmt,$i); print "<TR>"; - print "<TD>$column_name</TD>"; - print "<TD>$column_type</TD>"; - print "<TD>$column_size</TD>"; + print "<TD>$oszlopnev</TD>"; + print "<TD>$oszloptipus</TD>"; + print "<TD>$oszlopmeret</TD>"; print "</TR>"; } + print "</TABLE>\n"; OCIFreeStatement($stmt); OCILogoff($conn); print "</PRE>"; @@ -1151,9 +1163,9 @@ </example> </para> <simpara> - See also <function>OCINumCols</function>, - <function>OCIColumnType</function>, - and <function>OCIColumnSize</function>. + Lásd még <function>OCINumCols</function>, + <function>OCIColumnType</function> + és <function>OCIColumnSize</function>. </simpara> </refsect1> </refentry> @@ -1161,7 +1173,7 @@ <refentry id="function.ocicolumnsize"> <refnamediv> <refname>OCIColumnSize</refname> - <refpurpose>return result column size</refpurpose> + <refpurpose>Oszlop mérete egy eredménytáblában</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1171,10 +1183,10 @@ <methodparam><type>mixed</type><parameter>column</parameter></methodparam> </methodsynopsis> <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. + Az <function>OCIColumnSize</function> az Oracle által visszaadott + oszlop mérettel tér vissza. Használhatod az oszlop sorszámot + (1-tõl számozva), vagy az oszlop nevét a + <parameter>col</parameter> paraméterben. </para> <para> <example> @@ -1184,26 +1196,26 @@ <?php print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); - $stmt = OCIParse($conn,"select * from emp"); + $stmt = OCIParse($conn,"select * from dolgozok"); OCIExecute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; - print "<TH>Name</TH>"; - print "<TH>Type</TH>"; - print "<TH>Length</TH>"; + print "<TH>Név</TH>"; + print "<TH>Típus</TH>"; + print "<TH>Méret</TH>"; print "</TR>"; - $ncols = OCINumCols($stmt); - for ( $i = 1; $i <= $ncols; $i++ ) { - $column_name = OCIColumnName($stmt,$i); - $column_type = OCIColumnType($stmt,$i); - $column_size = OCIColumnSize($stmt,$i); + $oszlopszam = OCINumCols($stmt); + for ( $i = 1; $i <= $oszlopszam; $i++ ) { + $oszlopnev = OCIColumnName($stmt,$i); + $oszloptipus = OCIColumnType($stmt,$i); + $oszlopmeret = OCIColumnSize($stmt,$i); print "<TR>"; - print "<TD>$column_name</TD>"; - print "<TD>$column_type</TD>"; - print "<TD>$column_size</TD>"; + print "<TD>$oszlopnev</TD>"; + print "<TD>$oszloptipus</TD>"; + print "<TD>$oszlopmeret</TD>"; print "</TR>"; } - print "</TABLE>"; + print "</TABLE>\n"; OCIFreeStatement($stmt); OCILogoff($conn); print "</PRE>"; @@ -1214,8 +1226,8 @@ </example> </para> <simpara> - See also <function>OCINumCols</function>, - <function>OCIColumnName</function>, and + Lásd még <function>OCINumCols</function>, + <function>OCIColumnName</function> és <function>OCIColumnSize</function>. </simpara> </refsect1> @@ -1224,7 +1236,7 @@ <refentry id="function.ocicolumntype"> <refnamediv> <refname>OCIColumnType</refname> - <refpurpose>Returns the data type of a column.</refpurpose> + <refpurpose>Oszlop adattípusa egy eredménytáblában</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1234,9 +1246,8 @@ <methodparam><type>int</type><parameter>col</parameter></methodparam> </methodsynopsis> <simpara> - <function>OCIColumnType</function> returns the data type of the - column corresponding to the column number (1-based) that is passed - in. + Az <function>OCIColumnType</function> az adott sorszámú (1-tõl + számozva) oszlop adattípusát adja vissza. </simpara> <para> <example> @@ -1246,25 +1257,26 @@ <?php print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); - $stmt = OCIParse($conn,"select * from emp"); + $stmt = OCIParse($conn,"select * from dolgozok"); OCIExecute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; - print "<TH>Name</TH>"; - print "<TH>Type</TH>"; - print "<TH>Length</TH>"; + print "<TH>Név</TH>"; + print "<TH>Típus</TH>"; + print "<TH>Méret</TH>"; print "</TR>"; - $ncols = OCINumCols($stmt); - for ( $i = 1; $i <= $ncols; $i++ ) { - $column_name = OCIColumnName($stmt,$i); - $column_type = OCIColumnType($stmt,$i); - $column_size = OCIColumnSize($stmt,$i); + $oszlopszam = OCINumCols($stmt); + for ( $i = 1; $i <= $oszlopszam; $i++ ) { + $oszlopnev = OCIColumnName($stmt,$i); + $oszloptipus = OCIColumnType($stmt,$i); + $oszlopmeret = OCIColumnSize($stmt,$i); print "<TR>"; - print "<TD>$column_name</TD>"; - print "<TD>$column_type</TD>"; - print "<TD>$column_size</TD>"; + print "<TD>$oszlopnev</TD>"; + print "<TD>$oszloptipus</TD>"; + print "<TD>$oszlopmeret</TD>"; print "</TR>"; } + print "</TABLE>\n"; OCIFreeStatement($stmt); OCILogoff($conn); print "</PRE>"; @@ -1275,9 +1287,9 @@ </example> </para> <simpara> - See also <function>OCINumCols</function>, - <function>OCIColumnName</function>, - and <function>OCIColumnSize</function>. + Lásd még <function>OCINumCols</function>, + <function>OCIColumnName</function> és + <function>OCIColumnSize</function>. </simpara> </refsect1> </refentry> @@ -1285,8 +1297,7 @@ <refentry id="function.ociserverversion"> <refnamediv> <refname>OCIServerVersion</refname> - <refpurpose>Return a string containing server version - information.</refpurpose> + <refpurpose>Szerver verzió információ visszaadása</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1301,7 +1312,7 @@ <![CDATA[ <?php $conn = OCILogon("scott","tiger"); - print "Server Version: " . OCIServerVersion($conn); + print "Szerver verzió: " . OCIServerVersion($conn); OCILogOff($conn); ?> ]]> @@ -1314,7 +1325,7 @@ <refentry id="function.ocistatementtype"> <refnamediv> <refname>OCIStatementType</refname> - <refpurpose>Return the type of an OCI statement.</refpurpose> + <refpurpose>OCI parancs típusát adja vissza</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1323,33 +1334,33 @@ <methodparam><type>int</type><parameter>stmt</parameter></methodparam> </methodsynopsis> <para> - <function>OCIStatementType</function> returns one of the following - values: + Az <function>OCIStatementType</function> a parancs típusát adja + vissza. A következõk a lehetséges visszatérési értékek: <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> - <title>Code examples</title> + <title><function>OCIStatementType</function> példák</title> <programlisting> <![CDATA[ <?php print "<HTML><PRE>"; $conn = OCILogon("scott","tiger"); - $sql = "delete from emp where deptno = 10"; + $sql = "delete from dolgozok where reszleg = 10"; $stmt = OCIParse($conn,$sql); if ( OCIStatementType($stmt) == "DELETE" ) { - die "You are not allowed to delete from this table<BR>"; + die "Nincs jogod törölni ebbõl a táblából<BR>"; } OCILogoff($conn); @@ -1366,7 +1377,7 @@ <refnamediv> <refname>OCINewCursor</refname> <refpurpose> - Return a new cursor (Statement-Handle) - use to bind ref-cursors. + Új kurzor (parancs eredmény kezelõ) megnyitása </refpurpose> </refnamediv> <refsect1> @@ -1376,31 +1387,32 @@ <methodparam><type>int</type><parameter>conn</parameter></methodparam> </methodsynopsis> <para> - <function>OCINewCursor</function> allocates a new statement handle - on the specified connection. + Az <function>OCINewCursor</function> egy új eredménytábla kezelõ + kurzort nyit meg a megadott kapcsolaton. </para> <para> <example> - <title>Using a REF CURSOR from a stored procedure</title> + <title>REF CURSOR használata egy tárolt eljárásból</title> <programlisting> <![CDATA[ <?php -// suppose your stored procedure info.output returns a ref cursor in :data +// feltesszük, hogy az info.kimenet tárolt eljárásod egy "ref cursor"-t +// ad vissza az :adat-ban $conn = OCILogon("scott","tiger"); -$curs = OCINewCursor($conn); -$stmt = OCIParse($conn,"begin info.output(:data); end;"); +$kurzor = OCINewCursor($conn); +$stmt = OCIParse($conn,"begin info.kimenet(:adat); end;"); -ocibindbyname($stmt,"data",&$curs,-1,OCI_B_CURSOR); +ocibindbyname($stmt,"adat", &$kurzor, -1, OCI_B_CURSOR); ociexecute($stmt); -ociexecute($curs); +ociexecute($kurzor); -while (OCIFetchInto($curs,&$data)) { - var_dump($data); +while (OCIFetchInto($kurzor, &$adat)) { + var_dump($adat); } OCIFreeStatement($stmt); -OCIFreeCursor($curs); +OCIFreeCursor($kurzor); OCILogoff($conn); ?> ]]> @@ -1409,34 +1421,35 @@ </para> <para> <example> - <title>Using a REF CURSOR in a select statement</title> + <title>REF CURSOR használata select parancsban</title> <programlisting> <![CDATA[ <?php print "<HTML><BODY>"; $conn = OCILogon("scott","tiger"); -$count_cursor = "CURSOR(select count(empno) num_emps from emp " . - "where emp.deptno = dept.deptno) as EMPCNT from dept"; -$stmt = OCIParse($conn,"select deptno,dname,$count_cursor"); +$szamlalo_kurzor = + "CURSOR(select count(dolgozoid) dolgozo_szam from dolgozok " . + "where dolgozok.reszleg = reszleg.reszlegid) as DSZAM from reszleg"; +$stmt = OCIParse($conn,"select reszlegid,rnev,$szamlalo_kurzor"); ociexecute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; -print "<TH>DEPT NAME</TH>"; -print "<TH>DEPT #</TH>"; -print "<TH># EMPLOYEES</TH>"; +print "<TH>RÉSZLEG NÉV</TH>"; +print "<TH>RÉSZLEG SZÁM</TH>"; +print "<TH>DOLGOZÓK SZÁMA</TH>"; print "</TR>"; -while (OCIFetchInto($stmt,&$data,OCI_ASSOC)) { +while (OCIFetchInto($stmt, &$adat, OCI_ASSOC)) { print "<TR>"; - $dname = $data["DNAME"]; - $deptno = $data["DEPTNO"]; - print "<TD>$dname</TD>"; - print "<TD>$deptno</TD>"; - ociexecute($data[ "EMPCNT" ]); - while (OCIFetchInto($data[ "EMPCNT" ],&$subdata,OCI_ASSOC)) { - $num_emps = $subdata["NUM_EMPS"]; - print "<TD>$num_emps</TD>"; + $rnev = $adat["RNEV"]; + $rszam = $adat["RESZLEGID"]; + print "<TD>$rnev</TD>"; + print "<TD>$rszam</TD>"; + ociexecute($adat["DSZAM"]); + while (OCIFetchInto($adat["DSZAM"], &$reszadat, OCI_ASSOC)) { + $dszam = $reszadat["DOLGOZO_SZAM"]; + print "<TD>$dszam</TD>"; } print "</TR>"; } @@ -1456,7 +1469,7 @@ <refnamediv> <refname>OCIFreeStatement</refname> <refpurpose> - Free all resources associated with a statement. + Parancshoz rendelt erõforrások felszabadítása </refpurpose> </refnamediv> <refsect1> @@ -1466,8 +1479,8 @@ <methodparam><type>int</type><parameter>stmt</parameter></methodparam> </methodsynopsis> <para> - <function>OCIFreeStatement</function> returns &true; if successful, - or &false; if unsuccessful. + Az <function>OCIFreeStatement</function> &true; értéket ad siker, + &false; értéket ad kudarc esetén. </para> </refsect1> </refentry> @@ -1476,7 +1489,7 @@ <refnamediv> <refname>OCIFreeCursor</refname> <refpurpose> - Free all resources associated with a cursor. + Kurzorhoz rendelt erõforrások felszabadítása </refpurpose> </refnamediv> <refsect1> @@ -1486,8 +1499,8 @@ <methodparam><type>int</type><parameter>stmt</parameter></methodparam> </methodsynopsis> <para> - <function>OCIFreeCursor</function> returns &true; if successful, or - &false; if unsuccessful. + Az <function>OCIFreeCursor</function> &true; értéket ad siker, + &false; értéket ad kudarc esetén. </para> </refsect1> </refentry> @@ -1495,7 +1508,7 @@ <refentry id="function.ocifreedesc"> <refnamediv> <refname>OCIFreeDesc</refname> - <refpurpose>Deletes a large object descriptor.</refpurpose> + <refpurpose>Felszabadít egy LOB leírót</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1504,8 +1517,8 @@ <methodparam><type>object</type><parameter>lob</parameter></methodparam> </methodsynopsis> <para> - <function>OCIFreeDesc</function> returns &true; if successful, or - &false; if unsuccessful. + Az <function>OCIFreeDesc</function> &true; értéket ad siker, + &false; értéket ad kudarc esetén. </para> </refsect1> </refentry> @@ -1513,7 +1526,7 @@ <refentry id="function.ociparse"> <refnamediv> <refname>OCIParse</refname> - <refpurpose>Parse a query and return a statement</refpurpose> + <refpurpose>SQL lekérdezés feldolgozása, parancs visszaadása</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1523,19 +1536,21 @@ <methodparam><type>string</type><parameter>query</parameter></methodparam> </methodsynopsis> <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 or PL/SQL block. + Az <function>OCIParse</function> feldolgozz a + <parameter>query</parameter> paraméterben megadott SQL + lekérdezést a <parameter>conn</parameter> kapcsolaton. + A parancs azonosítóval tér vissza, ha a lekérdezés + érvényes volt, &false; értéket ad egyébként. A + <parameter>query</parameter> paramétert bármilyen + érvényes SQL parancs vagy PL/SQL blokk lehet. </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>A legutóbbi parancs / kapcsolat / általános hiba visszaadása </refpurpose> </refnamediv> <refsect1> @@ -1545,14 +1560,13 @@ <methodparam choice="opt"><type>int</type><parameter>stmt|conn|global</parameter></methodparam> </methodsynopsis> <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. + Az <function>OCIError</function> a legutóbbi hibát adja vissza. Ha + az opcionális <parameter>stmt|conn|global</parameter> paramétert nem + adod meg, a legutóbbi hibát kapod. Ha nem volt hiba, &false; értéket + kapsz. Az <function>OCIError</function> egy asszociatív tömbben adja + vissza a hibát. Ebben a tömbben a <parameter>code</parameter> + az Oracle hibakód, a <parameter>message</parameter> az Oracle + hibaüzenet karaktersorozat. </simpara> </refsect1> </refentry> @@ -1561,8 +1575,7 @@ <refnamediv> <refname>OCIInternalDebug</refname> <refpurpose> - Enables or disables internal debug output. By default it is - disabled + A belsõ debug kimenet engedélyezése / letiltása </refpurpose> </refnamediv> <refsect1> @@ -1572,9 +1585,10 @@ <methodparam><type>int</type><parameter>onoff</parameter></methodparam> </methodsynopsis> <simpara> - <function>OCIInternalDebug</function> enables internal debug - output. Set <parameter>onoff</parameter> to 0 to turn debug - output off, 1 to turn it on. + Az <function>OCIInternalDebug</function> engedélyezi a + belsõ debug kimenetet ha az <parameter>onoff</parameter> + paramétert 1 értékre állítod. Tiltásra a 0 értékkel van + lehetõség. </simpara> </refsect1> </refentry> @@ -1582,7 +1596,7 @@ <refentry id="function.ocicancel"> <refnamediv> <refname>OCICancel</refname> - <refpurpose>Cancel reading from cursor</refpurpose> + <refpurpose>Kurzorral olvasás befejezése</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1591,8 +1605,8 @@ <methodparam><type>int</type><parameter>stmt</parameter></methodparam> </methodsynopsis> <simpara> - If you do not want read more data from a cursor, then call - <function>OCICancel</function>. + Ha nem szeretnél több adatot olvasni egy kurzorral, + hívd meg ezt a függényt. </simpara> </refsect1> </refentry> @@ -1600,7 +1614,7 @@ <refentry id="function.ocisetprefetch"> <refnamediv> <refname>OCISetPrefetch</refname> - <refpurpose>sets number of rows to be prefetched</refpurpose> + <refpurpose>Az elõzetesen lehívott sorok számának beállítása</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1610,7 +1624,8 @@ <methodparam><type>int</type><parameter>rows</parameter></methodparam> </methodsynopsis> <simpara> - Sets the number of top level rows to be prefetched. The default value is 1 row. + Beállítja az elõzetesen lehívott sorok számát. Az alapértelmezés + 1 sor. </simpara> </refsect1> </refentry>
Index: phpdoc/hu/functions/oci8.xml diff -u phpdoc/hu/functions/oci8.xml:1.5 phpdoc/hu/functions/oci8.xml:1.6 --- phpdoc/hu/functions/oci8.xml:1.5 Fri Mar 29 09:48:23 2002 +++ phpdoc/hu/functions/oci8.xml Fri Mar 29 13:33:26 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.44 Maintainer: goba Status: half translated --> +<!-- EN-Revision: 1.45 Maintainer: goba Status: ready --> <reference id="ref.oci8"> <title>Oracle 8 függvények</title> <titleabbrev>OCI8</titleabbrev> @@ -647,7 +647,7 @@ <refentry id="function.ociexecute"> <refnamediv> <refname>OCIExecute</refname> - <refpurpose>Execute a statement</refpurpose> + <refpurpose>Parancs futtatása</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -657,12 +657,13 @@ <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> </methodsynopsis> <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 committed automatically specify OCI_DEFAULT as - your mode. + Az <function>OCIExecute</function> futtat egy korábban feldolgozott + parancsot. (Lásd az <function>OCIParse</function> függvényt.) + Az opcionális <parameter>mode</parameter> paraméterrel tudod + beállítani a végrehajtás módját. Az alapértelmezés az + OCI_COMMIT_ON_SUCCESS. Ha nem szeretnéd, hogy a parancs + rögtön egy tranzakció végrehajtást is végezzen, add meg + az OCI_DEFAULT módot. </para> <para> &return.success; @@ -673,7 +674,7 @@ <refentry id="function.ocicommit"> <refnamediv> <refname>OCICommit</refname> - <refpurpose>Commits outstanding transactions</refpurpose> + <refpurpose>Függõben lévõ tranzakciók végrehajtása</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -682,8 +683,9 @@ <methodparam><type>int</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> - <function>OCICommit</function> commits all outstanding statements - for Oracle connection <parameter>connection</parameter>. + Az <function>OCICommit</function> minden a + <parameter>connection</parameter> Oracle kapcsolaton + függõben lévõ tranzakciót végrehajt. </para> </refsect1> </refentry> @@ -691,7 +693,7 @@ <refentry id="function.ocirollback"> <refnamediv> <refname>OCIRollback</refname> - <refpurpose>Rolls back outstanding transactions</refpurpose> + <refpurpose>Függõben lévõ tranzakciók visszavonása</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -700,8 +702,9 @@ <methodparam><type>int</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> - <function>OCIRollback</function> rolls back all outstanding - statements for Oracle connection <parameter>connection</parameter>. + Az <function>OCIRollback</function> minden a + <parameter>connection</parameter> Oracle kapcsolaton + függõben lévõ tranzakciót visszavon. </para> </refsect1> </refentry> @@ -710,7 +713,7 @@ <refnamediv> <refname>OCINewDescriptor</refname> <refpurpose> - Initialize a new empty descriptor LOB/FILE (LOB is default) + Egy új üres LOB vagy FILE leírót hoz létre </refpurpose> </refnamediv> <refsect1> @@ -721,42 +724,44 @@ <methodparam choice="opt"><type>int</type><parameter>type</parameter></methodparam> </methodsynopsis> <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 descriptors, the methods load, save, and savefile are - associated with the descriptor, for BFILE only the load method - exists. See the second example usage hints. + Az <function>OCINewDescriptor</function> tárterületet foglal + le leírók vagy LOB lokátorok tárolására. A + <parameter>type</parameter> lehetséges értékei OCI_D_FILE, + OCI_D_LOB és OCI_D_ROWID. LOB leírók esetén a a load, save + és savefile metódusokat használhatod, a BFILE csak a + load metódust támogatja. Lásd a második példa használati + tippjeit. </para> <example> <title>OCINewDescriptor</title> <programlisting> <![CDATA[ -<?php - /* This script is designed to be called from a HTML form. - * It expects $user, $password, $table, $where, and $commitsize - * to be passed in from the form. The script then deletes - * the selected rows using the ROWID and commits after each - * set of $commitsize rows. (Use with care, there is no rollback) +<?php + /* Ez a program ûrlapból történõ meghíváshoz készült. + * A $felhasznalo, $jelszo, $tabla, $where és $commitmeret + * értékeket várja az ûrlapból. A program letörli a kiválasztott + * sorokat a ROWID felhasználásval, és minden $commitmeret sor + * után egy tranzakció végrehajtást eszközöl. Használd óvatosan, + * a mûveletek nem visszavonhatóak. */ - $conn = OCILogon($user, $password); - $stmt = OCIParse($conn,"select rowid from $table $where"); + $conn = OCILogon($felhasznalo, $jelszo); + $stmt = OCIParse($conn,"select rowid from $tabla $where"); $rowid = OCINewDescriptor($conn,OCI_D_ROWID); - OCIDefineByName($stmt,"ROWID",&$rowid); + OCIDefineByName($stmt,"ROWID",&$rowid); OCIExecute($stmt); - while ( OCIFetch($stmt) ) { - $nrows = OCIRowCount($stmt); - $delete = OCIParse($conn,"delete from $table where ROWID = :rid"); + while ( OCIFetch($stmt) ) { + $sorokszama = OCIRowCount($stmt); + $delete = OCIParse($conn,"delete from $tabla where ROWID = :rid"); OCIBindByName($delete,":rid",&$rowid,-1,OCI_B_ROWID); - OCIExecute($delete); - print "$nrows\n"; - if ( ($nrows % $commitsize) == 0 ) { - OCICommit($conn); - } + OCIExecute($delete); + print "$sorokszama\n"; + if ( ($sorokszama % $commitmeret) == 0 ) { + OCICommit($conn); + } } - $nrows = OCIRowCount($stmt); - print "$nrows deleted...\n"; - OCIFreeStatement($stmt); + $sorokszama = OCIRowCount($stmt); + print "$sorokszama sor törölve...\n"; + OCIFreeStatement($stmt); OCILogoff($conn); ?> ]]> @@ -764,32 +769,37 @@ <programlisting> <![CDATA[ <?php - /* This script demonstrates file upload to LOB columns - * The formfield used for this example looks like this - * <form action="upload.php3" method="post" enctype="multipart/form-data"> + /* Ez a program LOB mezõbe állomány feltöltést mutat be. + * Az ûrlapmezõ, amit a példa feltételez a következõ: + * <form action="upload.php" method="post" enctype="multipart/form-data"> * <input type="file" name="lob_upload"> * ... */ if(!isset($lob_upload) || $lob_upload == 'none'){ ?> -<form action="upload.php3" method="post" enctype="multipart/form-data"> +<form action="upload.php" method="post" enctype="multipart/form-data"> Upload file: <input type="file" name="lob_upload"><br> -<input type="submit" value="Upload"> - <input type="reset"> +<input type="submit" value="Feltöltés"> - <input type="reset"> </form> <?php } else { - // $lob_upload contains the temporary filename of the uploaded file - $conn = OCILogon($user, $password); + + // $lob_upload tartalmazza a feltöltött file ideiglenes állomány nevét + + // lásd még az állomány feltöltésrõl szóló részt biztonságos + // file feltöltés példák érdekében + + $conn = OCILogon($felhasznalo, $jelszo); $lob = OCINewDescriptor($conn, OCI_D_LOB); - $stmt = OCIParse($conn,"insert into $table (id, the_blob) - values(my_seq.NEXTVAL, EMPTY_BLOB()) returning the_blob into :the_blob"); - OCIBindByName($stmt, ':the_blob', &$lob, -1, OCI_B_BLOB); + $stmt = OCIParse($conn,"insert into $tabla (id, a_blob) + values(my_seq.NEXTVAL, EMPTY_BLOB()) returning a_blob into :a_blob"); + OCIBindByName($stmt, ':a_blob', &$lob, -1, OCI_B_BLOB); OCIExecute($stmt, OCI_DEFAULT); if($lob->savefile($lob_upload)){ OCICommit($conn); - echo "Blob successfully uploaded\n"; + echo "A Blob feltöltése sikeres\n"; }else{ - echo "Couldn't upload Blob\n"; + echo "Nem sikerült feltölteni a Blobot\n"; } OCIFreeDesc($lob); OCIFreeStatement($stmt); @@ -804,24 +814,23 @@ <programlisting> <![CDATA[ <?php - /* Calling PL/SQL stored procedures which contain clobs as input - * parameters (PHP 4 >= 4.0.6). - * Example PL/SQL stored procedure signature is: + /* PL/SQL tárolt eljárások hívása, amik clobs bemeneti paramétereket + * tartalmaznak (PHP 4 >= 4.0.6). * - * PROCEDURE save_data - * Argument Name Type In/Out Default? - * ------------------------------ ----------------------- ------ -------- - * KEY NUMBER(38) IN - * DATA CLOB IN + * PROCEDURE adat_mentes + * Argumentum neve Típus KI/BE Alapérték + * ------------------------------ ----------------------- ------ --------- + * KULCS NUMBER(38) BE + * ADAT CLOB BE * */ - $conn = OCILogon($user, $password); - $stmt = OCIParse($conn, "begin save_data(:key, :data); end;"); + $conn = OCILogon($felhasznalo, $jelszo); + $stmt = OCIParse($conn, "begin adat_mentes(:kulcs, :adat); end;"); $clob = OCINewDescriptor($conn, OCI_D_LOB); - OCIBindByName($stmt, ':key', $key); - OCIBindByName($stmt, ':data', $clob, -1, OCI_B_CLOB); - $clob->WriteTemporary($data); + OCIBindByName($stmt, ':kulcs', $kulcs); + OCIBindByName($stmt, ':adat', $clob, -1, OCI_B_CLOB); + $clob->WriteTemporary($adat); OCIExecute($stmt, OCI_DEFAULT); OCICommit($conn); $clob->close(); @@ -837,7 +846,7 @@ <refentry id="function.ocirowcount"> <refnamediv> <refname>OCIRowCount</refname> - <refpurpose>Gets the number of affected rows</refpurpose> + <refpurpose>Az érintett sorok száma</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -846,9 +855,10 @@ <methodparam><type>int</type><parameter>statement</parameter></methodparam> </methodsynopsis> <para> - <function>OCIRowCount</function> returns the number of rows affected - for eg update-statements. This function will not tell you the number - of rows that a select will return!</para> + Az <function>OCIRowCount</function> visszaadja az érintett sorok + számát például egy update parancs után. Ez a függvény nem adja + vissza a select lekérdezés által visszaadott sorok számát! + </para> <para> <example> <title>OCIRowCount</title> @@ -857,16 +867,16 @@ <?php print "<HTML><PRE>"; $conn = OCILogon("scott","tiger"); - $stmt = OCIParse($conn,"create table emp2 as select * from emp"); + $stmt = OCIParse($conn,"create table dolgozok2 as select * from dolgozok"); OCIExecute($stmt); - print OCIRowCount($stmt) . " rows inserted.<BR>"; + print OCIRowCount($stmt) . " sor beillesztve.<BR>"; OCIFreeStatement($stmt); - $stmt = OCIParse($conn,"delete from emp2"); + $stmt = OCIParse($conn,"delete from dolgozok2"); OCIExecute($stmt); - print OCIRowCount($stmt) . " rows deleted.<BR>"; + print OCIRowCount($stmt) . " sor törölve.<BR>"; OCICommit($conn); OCIFreeStatement($stmt); - $stmt = OCIParse($conn,"drop table emp2"); + $stmt = OCIParse($conn,"drop table dolgozok2"); OCIExecute($stmt); OCIFreeStatement($stmt); OCILogOff($conn); @@ -883,7 +893,7 @@ <refnamediv> <refname>OCINumCols</refname> <refpurpose> - Return the number of result columns in a statement + Az eredményoszlopok száma egy eredménytáblában </refpurpose> </refnamediv> <refsect1> @@ -893,32 +903,32 @@ <methodparam><type>int</type><parameter>stmt</parameter></methodparam> </methodsynopsis> <para> - <function>OCINumCols</function> returns the number of columns in a - statement + Az <function>OCINumCols</function> visszaadja az eredménytábla + oszlopainak a számát. </para> <example> <title>OCINumCols</title> <programlisting> <![CDATA[ <?php - print "<HTML><PRE>\n"; + print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); - $stmt = OCIParse($conn,"select * from emp"); + $stmt = OCIParse($conn,"select * from dolgozok"); OCIExecute($stmt); while ( OCIFetch($stmt) ) { - print "\n"; + print "\n"; $ncols = OCINumCols($stmt); for ( $i = 1; $i <= $ncols; $i++ ) { - $column_name = OCIColumnName($stmt,$i); - $column_value = OCIResult($stmt,$i); - print $column_name . ': ' . $column_value . "\n"; + $oszlop_neve = OCIColumnName($stmt,$i); + $mezo_erteke = OCIResult($stmt,$i); + print $oszlop_neve . ': ' . $mezo_erteke . "\n"; } print "\n"; } - OCIFreeStatement($stmt); - OCILogoff($conn); + OCIFreeStatement($stmt); + OCILogoff($conn); print "</PRE>"; - print "</HTML>\n"; + print "</HTML>\n"; ?> ]]> </programlisting> @@ -929,7 +939,7 @@ <refentry id="function.ociresult"> <refnamediv> <refname>OCIResult</refname> - <refpurpose>Returns column value for fetched row</refpurpose> + <refpurpose>Mezõ értékének visszaadása lekérdezett sorból</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -939,11 +949,11 @@ <methodparam><type>mixed</type><parameter>column</parameter></methodparam> </methodsynopsis> <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). + Az <function>OCIResult</function> a <parameter>column</parameter> + oszlopban lévõ adatot adja vissza az aktuális sorban. Lásd az + <function>OCIFetch</function> függvényt. Az <function>OCIResult</function> + mindent karaktersorozatként ad vissza, kivéve az absztrakt + adattípusokat (ROWID, LOB és FILE típusok). </para> </refsect1> </refentry> @@ -951,7 +961,7 @@ <refentry id="function.ocifetch"> <refnamediv> <refname>OCIFetch</refname> - <refpurpose>Fetches the next row into result-buffer</refpurpose> + <refpurpose>A következõ eredmény sor lekérdezése</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -960,8 +970,9 @@ <methodparam><type>int</type><parameter>statement</parameter></methodparam> </methodsynopsis> <para> - <function>OCIFetch</function> fetches the next row (for SELECT - statements) into the internal result-buffer. + Az <function>OCIFetch</function> lekérdezi a következõ eredménytábla + sort, és egy belsõ eredmény bufferbe helyezi. SELECT parancsok + eredménytábláján használható. </para> </refsect1> </refentry> @@ -969,7 +980,7 @@ <refentry id="function.ocifetchinto"> <refnamediv> <refname>OCIFetchInto</refname> - <refpurpose>Fetches the next row into result-array</refpurpose> + <refpurpose>A következõ sor lekérdezése tömbbe</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -980,32 +991,31 @@ <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> </methodsynopsis> <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 zero-based array of all - columns that are not &null;. + Az <function>OCIFetchInto</function> lekérdezi a következõ sort, és + a <parameter>result</parameter> tömbbe tölti be. SELECT parancsok + eredménytábláján használható. A függvény felülírja a + <parameter>result</parameter> korábbi tartalmát, ha volt ilyen. + Alapértelmezésben a <parameter>result</parameter> egy számindexes + tömb lesz minden mezõértékkel, ami nem &null;. </para> <para> - The <parameter>mode</parameter> parameter allows you to change the - default behaviour. You can specify more than one flag by simply - adding them up (eg OCI_ASSOC+OCI_RETURN_NULLS). The known flags - are: + A <parameter>mode</parameter> paraméterrel tudod szabályozni + a result szerkezetét és tartalmát. Több opciót is megadhatsz, + egyszerû összeadással, például írhatod, hogy + OCI_ASSOC + OCI_RETURN_NULLS. A használható opciók: <simplelist> <member> - <literal>OCI_ASSOC</literal> Return an associative array. + <literal>OCI_ASSOC</literal> Asszociatív tömb formátum. </member> <member> - <literal>OCI_NUM</literal> Return an numbered array starting with - zero. (DEFAULT) + <literal>OCI_NUM</literal> Számindexes tömb formátum (alapértelmezés). </member> <member> - <literal>OCI_RETURN_NULLS</literal> Return empty columns. + <literal>OCI_RETURN_NULLS</literal> A &null; értékû mezõk visszaadása. </member> <member> - <literal>OCI_RETURN_LOBS</literal> Return the value of a LOB - instead of the descriptor. + <literal>OCI_RETURN_LOBS</literal> A LOB érték visszaadása a + leíró helyett. </member> </simplelist> </para> @@ -1015,7 +1025,7 @@ <refentry id="function.ocifetchstatement"> <refnamediv> <refname>OCIFetchStatement</refname> - <refpurpose>Fetch all rows of result data into an array.</refpurpose> + <refpurpose>Miden eredménysor lekérdezése egy tömbbe</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1025,47 +1035,46 @@ <methodparam><type>array &</type><parameter>variable</parameter></methodparam> </methodsynopsis> <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. + Az <function>OCIFetchStatement</function> lekérdezi az összes eredménysort, + és egy PHP tömbbe helyezi. A függvény a lekrédezett sorok számával tér + vissza. </para> <example> <title>OCIFetchStatement</title> <programlisting> <![CDATA[ <?php -/* OCIFetchStatement example mbritton@verinet.com (990624) */ +/* OCIFetchStatement példa - mbritton@verinet.com (990624) */ $conn = OCILogon("scott","tiger"); -$stmt = OCIParse($conn,"select * from emp"); +$stmt = OCIParse($conn,"select * from dolgozok"); OCIExecute($stmt); -$nrows = OCIFetchStatement($stmt,$results); -if ( $nrows > 0 ) { +$sorokszama = OCIFetchStatement($stmt, $tabla); +if ( $sorokszama > 0 ) { print "<TABLE BORDER=\"1\">\n"; print "<TR>\n"; - while ( list( $key, $val ) = each( $results ) ) { - print "<TH>$key</TH>\n"; + while ( list( $kulcs, $ertek ) = each( $tabla ) ) { + print "<TH>$kulcs</TH>\n"; } print "</TR>\n"; - for ( $i = 0; $i < $nrows; $i++ ) { - reset($results); + for ( $i = 0; $i < $sorokszama; $i++ ) { + reset($tabla); print "<TR>\n"; - while ( $column = each($results) ) { - $data = $column['value']; - print "<TD>$data[$i]</TD>\n"; + while ( $mezo = each($tabla) ) { + $adat = $mezo['value']; + print "<TD>$adat[$i]</TD>\n"; } print "</TR>\n"; } print "</TABLE>\n"; } else { - echo "No data found<BR>\n"; + echo "Nincs adat a táblában<BR>\n"; } -print "$nrows Records Selected<BR>\n"; +print "$sorokszama sort sikerült lekérdezni<BR>\n"; OCIFreeStatement($stmt); OCILogoff($conn); @@ -1079,7 +1088,7 @@ <refentry id="function.ocicolumnisnull"> <refnamediv> <refname>OCIColumnIsNULL</refname> - <refpurpose>test whether a result column is &null;</refpurpose> + <refpurpose>&null; értékû mezõ azonosítása</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1089,11 +1098,11 @@ <methodparam><type>mixed</type><parameter>column</parameter></methodparam> </methodsynopsis> <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. + Az <function>OCIColumnIsNULL</function> &true; értéket ad vissza, ha + a visszaadott <parameter>column</parameter> mezõ az + <parameter>stmt</parameter> eredménytáblájában &null; értékû. + Használhatod az oszlop sorszámot (1-tõl számozva), vagy + az oszlop nevét a <parameter>col</parameter> paraméterben. </para> </refsect1> </refentry> @@ -1101,7 +1110,7 @@ <refentry id="function.ocicolumnname"> <refnamediv> <refname>OCIColumnName</refname> - <refpurpose>Returns the name of a column.</refpurpose> + <refpurpose>Oszlop neve egy eredménytáblában</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1111,8 +1120,10 @@ <methodparam><type>int</type><parameter>col</parameter></methodparam> </methodsynopsis> <simpara> - <function>OCIColumnName</function> returns the name of the column - corresponding to the column number (1-based) that is passed in. + Az <function>OCIColumnName</function> visszaadja a + <parameter>col</parameter> paraméterben megadott oszlop + nevét. A <parameter>col</parameter> egy sorszám, a számozás + 1-tõl kezdõdik. </simpara> <para> <example> @@ -1122,25 +1133,26 @@ <?php print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); - $stmt = OCIParse($conn,"select * from emp"); + $stmt = OCIParse($conn,"select * from dolgozok"); OCIExecute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; - print "<TH>Name</TH>"; - print "<TH>Type</TH>"; - print "<TH>Length</TH>"; + print "<TH>Név</TH>"; + print "<TH>Típus</TH>"; + print "<TH>Méret</TH>"; print "</TR>"; - $ncols = OCINumCols($stmt); - for ( $i = 1; $i <= $ncols; $i++ ) { - $column_name = OCIColumnName($stmt,$i); - $column_type = OCIColumnType($stmt,$i); - $column_size = OCIColumnSize($stmt,$i); + $oszlopszam = OCINumCols($stmt); + for ( $i = 1; $i <= $oszlopszam; $i++ ) { + $oszlopnev = OCIColumnName($stmt,$i); + $oszloptipus = OCIColumnType($stmt,$i); + $oszlopmeret = OCIColumnSize($stmt,$i); print "<TR>"; - print "<TD>$column_name</TD>"; - print "<TD>$column_type</TD>"; - print "<TD>$column_size</TD>"; + print "<TD>$oszlopnev</TD>"; + print "<TD>$oszloptipus</TD>"; + print "<TD>$oszlopmeret</TD>"; print "</TR>"; } + print "</TABLE>\n"; OCIFreeStatement($stmt); OCILogoff($conn); print "</PRE>"; @@ -1151,9 +1163,9 @@ </example> </para> <simpara> - See also <function>OCINumCols</function>, - <function>OCIColumnType</function>, - and <function>OCIColumnSize</function>. + Lásd még <function>OCINumCols</function>, + <function>OCIColumnType</function> + és <function>OCIColumnSize</function>. </simpara> </refsect1> </refentry> @@ -1161,7 +1173,7 @@ <refentry id="function.ocicolumnsize"> <refnamediv> <refname>OCIColumnSize</refname> - <refpurpose>return result column size</refpurpose> + <refpurpose>Oszlop mérete egy eredménytáblában</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1171,10 +1183,10 @@ <methodparam><type>mixed</type><parameter>column</parameter></methodparam> </methodsynopsis> <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. + Az <function>OCIColumnSize</function> az Oracle által visszaadott + oszlop mérettel tér vissza. Használhatod az oszlop sorszámot + (1-tõl számozva), vagy az oszlop nevét a + <parameter>col</parameter> paraméterben. </para> <para> <example> @@ -1184,26 +1196,26 @@ <?php print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); - $stmt = OCIParse($conn,"select * from emp"); + $stmt = OCIParse($conn,"select * from dolgozok"); OCIExecute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; - print "<TH>Name</TH>"; - print "<TH>Type</TH>"; - print "<TH>Length</TH>"; + print "<TH>Név</TH>"; + print "<TH>Típus</TH>"; + print "<TH>Méret</TH>"; print "</TR>"; - $ncols = OCINumCols($stmt); - for ( $i = 1; $i <= $ncols; $i++ ) { - $column_name = OCIColumnName($stmt,$i); - $column_type = OCIColumnType($stmt,$i); - $column_size = OCIColumnSize($stmt,$i); + $oszlopszam = OCINumCols($stmt); + for ( $i = 1; $i <= $oszlopszam; $i++ ) { + $oszlopnev = OCIColumnName($stmt,$i); + $oszloptipus = OCIColumnType($stmt,$i); + $oszlopmeret = OCIColumnSize($stmt,$i); print "<TR>"; - print "<TD>$column_name</TD>"; - print "<TD>$column_type</TD>"; - print "<TD>$column_size</TD>"; + print "<TD>$oszlopnev</TD>"; + print "<TD>$oszloptipus</TD>"; + print "<TD>$oszlopmeret</TD>"; print "</TR>"; } - print "</TABLE>"; + print "</TABLE>\n"; OCIFreeStatement($stmt); OCILogoff($conn); print "</PRE>"; @@ -1214,8 +1226,8 @@ </example> </para> <simpara> - See also <function>OCINumCols</function>, - <function>OCIColumnName</function>, and + Lásd még <function>OCINumCols</function>, + <function>OCIColumnName</function> és <function>OCIColumnSize</function>. </simpara> </refsect1> @@ -1224,7 +1236,7 @@ <refentry id="function.ocicolumntype"> <refnamediv> <refname>OCIColumnType</refname> - <refpurpose>Returns the data type of a column.</refpurpose> + <refpurpose>Oszlop adattípusa egy eredménytáblában</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1234,9 +1246,8 @@ <methodparam><type>int</type><parameter>col</parameter></methodparam> </methodsynopsis> <simpara> - <function>OCIColumnType</function> returns the data type of the - column corresponding to the column number (1-based) that is passed - in. + Az <function>OCIColumnType</function> az adott sorszámú (1-tõl + számozva) oszlop adattípusát adja vissza. </simpara> <para> <example> @@ -1246,25 +1257,26 @@ <?php print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); - $stmt = OCIParse($conn,"select * from emp"); + $stmt = OCIParse($conn,"select * from dolgozok"); OCIExecute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; - print "<TH>Name</TH>"; - print "<TH>Type</TH>"; - print "<TH>Length</TH>"; + print "<TH>Név</TH>"; + print "<TH>Típus</TH>"; + print "<TH>Méret</TH>"; print "</TR>"; - $ncols = OCINumCols($stmt); - for ( $i = 1; $i <= $ncols; $i++ ) { - $column_name = OCIColumnName($stmt,$i); - $column_type = OCIColumnType($stmt,$i); - $column_size = OCIColumnSize($stmt,$i); + $oszlopszam = OCINumCols($stmt); + for ( $i = 1; $i <= $oszlopszam; $i++ ) { + $oszlopnev = OCIColumnName($stmt,$i); + $oszloptipus = OCIColumnType($stmt,$i); + $oszlopmeret = OCIColumnSize($stmt,$i); print "<TR>"; - print "<TD>$column_name</TD>"; - print "<TD>$column_type</TD>"; - print "<TD>$column_size</TD>"; + print "<TD>$oszlopnev</TD>"; + print "<TD>$oszloptipus</TD>"; + print "<TD>$oszlopmeret</TD>"; print "</TR>"; } + print "</TABLE>\n"; OCIFreeStatement($stmt); OCILogoff($conn); print "</PRE>"; @@ -1275,9 +1287,9 @@ </example> </para> <simpara> - See also <function>OCINumCols</function>, - <function>OCIColumnName</function>, - and <function>OCIColumnSize</function>. + Lásd még <function>OCINumCols</function>, + <function>OCIColumnName</function> és + <function>OCIColumnSize</function>. </simpara> </refsect1> </refentry> @@ -1285,8 +1297,7 @@ <refentry id="function.ociserverversion"> <refnamediv> <refname>OCIServerVersion</refname> - <refpurpose>Return a string containing server version - information.</refpurpose> + <refpurpose>Szerver verzió információ visszaadása</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1301,7 +1312,7 @@ <![CDATA[ <?php $conn = OCILogon("scott","tiger"); - print "Server Version: " . OCIServerVersion($conn); + print "Szerver verzió: " . OCIServerVersion($conn); OCILogOff($conn); ?> ]]> @@ -1314,7 +1325,7 @@ <refentry id="function.ocistatementtype"> <refnamediv> <refname>OCIStatementType</refname> - <refpurpose>Return the type of an OCI statement.</refpurpose> + <refpurpose>OCI parancs típusát adja vissza</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1323,33 +1334,33 @@ <methodparam><type>int</type><parameter>stmt</parameter></methodparam> </methodsynopsis> <para> - <function>OCIStatementType</function> returns one of the following - values: + Az <function>OCIStatementType</function> a parancs típusát adja + vissza. A következõk a lehetséges visszatérési értékek: <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> - <title>Code examples</title> + <title><function>OCIStatementType</function> példák</title> <programlisting> <![CDATA[ <?php print "<HTML><PRE>"; $conn = OCILogon("scott","tiger"); - $sql = "delete from emp where deptno = 10"; + $sql = "delete from dolgozok where reszleg = 10"; $stmt = OCIParse($conn,$sql); if ( OCIStatementType($stmt) == "DELETE" ) { - die "You are not allowed to delete from this table<BR>"; + die "Nincs jogod törölni ebbõl a táblából<BR>"; } OCILogoff($conn); @@ -1366,7 +1377,7 @@ <refnamediv> <refname>OCINewCursor</refname> <refpurpose> - Return a new cursor (Statement-Handle) - use to bind ref-cursors. + Új kurzor (parancs eredmény kezelõ) megnyitása </refpurpose> </refnamediv> <refsect1> @@ -1376,31 +1387,32 @@ <methodparam><type>int</type><parameter>conn</parameter></methodparam> </methodsynopsis> <para> - <function>OCINewCursor</function> allocates a new statement handle - on the specified connection. + Az <function>OCINewCursor</function> egy új eredménytábla kezelõ + kurzort nyit meg a megadott kapcsolaton. </para> <para> <example> - <title>Using a REF CURSOR from a stored procedure</title> + <title>REF CURSOR használata egy tárolt eljárásból</title> <programlisting> <![CDATA[ <?php -// suppose your stored procedure info.output returns a ref cursor in :data +// feltesszük, hogy az info.kimenet tárolt eljárásod egy "ref cursor"-t +// ad vissza az :adat-ban $conn = OCILogon("scott","tiger"); -$curs = OCINewCursor($conn); -$stmt = OCIParse($conn,"begin info.output(:data); end;"); +$kurzor = OCINewCursor($conn); +$stmt = OCIParse($conn,"begin info.kimenet(:adat); end;"); -ocibindbyname($stmt,"data",&$curs,-1,OCI_B_CURSOR); +ocibindbyname($stmt,"adat", &$kurzor, -1, OCI_B_CURSOR); ociexecute($stmt); -ociexecute($curs); +ociexecute($kurzor); -while (OCIFetchInto($curs,&$data)) { - var_dump($data); +while (OCIFetchInto($kurzor, &$adat)) { + var_dump($adat); } OCIFreeStatement($stmt); -OCIFreeCursor($curs); +OCIFreeCursor($kurzor); OCILogoff($conn); ?> ]]> @@ -1409,34 +1421,35 @@ </para> <para> <example> - <title>Using a REF CURSOR in a select statement</title> + <title>REF CURSOR használata select parancsban</title> <programlisting> <![CDATA[ <?php print "<HTML><BODY>"; $conn = OCILogon("scott","tiger"); -$count_cursor = "CURSOR(select count(empno) num_emps from emp " . - "where emp.deptno = dept.deptno) as EMPCNT from dept"; -$stmt = OCIParse($conn,"select deptno,dname,$count_cursor"); +$szamlalo_kurzor = + "CURSOR(select count(dolgozoid) dolgozo_szam from dolgozok " . + "where dolgozok.reszleg = reszleg.reszlegid) as DSZAM from reszleg"; +$stmt = OCIParse($conn,"select reszlegid,rnev,$szamlalo_kurzor"); ociexecute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; -print "<TH>DEPT NAME</TH>"; -print "<TH>DEPT #</TH>"; -print "<TH># EMPLOYEES</TH>"; +print "<TH>RÉSZLEG NÉV</TH>"; +print "<TH>RÉSZLEG SZÁM</TH>"; +print "<TH>DOLGOZÓK SZÁMA</TH>"; print "</TR>"; -while (OCIFetchInto($stmt,&$data,OCI_ASSOC)) { +while (OCIFetchInto($stmt, &$adat, OCI_ASSOC)) { print "<TR>"; - $dname = $data["DNAME"]; - $deptno = $data["DEPTNO"]; - print "<TD>$dname</TD>"; - print "<TD>$deptno</TD>"; - ociexecute($data[ "EMPCNT" ]); - while (OCIFetchInto($data[ "EMPCNT" ],&$subdata,OCI_ASSOC)) { - $num_emps = $subdata["NUM_EMPS"]; - print "<TD>$num_emps</TD>"; + $rnev = $adat["RNEV"]; + $rszam = $adat["RESZLEGID"]; + print "<TD>$rnev</TD>"; + print "<TD>$rszam</TD>"; + ociexecute($adat["DSZAM"]); + while (OCIFetchInto($adat["DSZAM"], &$reszadat, OCI_ASSOC)) { + $dszam = $reszadat["DOLGOZO_SZAM"]; + print "<TD>$dszam</TD>"; } print "</TR>"; } @@ -1456,7 +1469,7 @@ <refnamediv> <refname>OCIFreeStatement</refname> <refpurpose> - Free all resources associated with a statement. + Parancshoz rendelt erõforrások felszabadítása </refpurpose> </refnamediv> <refsect1> @@ -1466,8 +1479,8 @@ <methodparam><type>int</type><parameter>stmt</parameter></methodparam> </methodsynopsis> <para> - <function>OCIFreeStatement</function> returns &true; if successful, - or &false; if unsuccessful. + Az <function>OCIFreeStatement</function> &true; értéket ad siker, + &false; értéket ad kudarc esetén. </para> </refsect1> </refentry> @@ -1476,7 +1489,7 @@ <refnamediv> <refname>OCIFreeCursor</refname> <refpurpose> - Free all resources associated with a cursor. + Kurzorhoz rendelt erõforrások felszabadítása </refpurpose> </refnamediv> <refsect1> @@ -1486,8 +1499,8 @@ <methodparam><type>int</type><parameter>stmt</parameter></methodparam> </methodsynopsis> <para> - <function>OCIFreeCursor</function> returns &true; if successful, or - &false; if unsuccessful. + Az <function>OCIFreeCursor</function> &true; értéket ad siker, + &false; értéket ad kudarc esetén. </para> </refsect1> </refentry> @@ -1495,7 +1508,7 @@ <refentry id="function.ocifreedesc"> <refnamediv> <refname>OCIFreeDesc</refname> - <refpurpose>Deletes a large object descriptor.</refpurpose> + <refpurpose>Felszabadít egy LOB leírót</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1504,8 +1517,8 @@ <methodparam><type>object</type><parameter>lob</parameter></methodparam> </methodsynopsis> <para> - <function>OCIFreeDesc</function> returns &true; if successful, or - &false; if unsuccessful. + Az <function>OCIFreeDesc</function> &true; értéket ad siker, + &false; értéket ad kudarc esetén. </para> </refsect1> </refentry> @@ -1513,7 +1526,7 @@ <refentry id="function.ociparse"> <refnamediv> <refname>OCIParse</refname> - <refpurpose>Parse a query and return a statement</refpurpose> + <refpurpose>SQL lekérdezés feldolgozása, parancs visszaadása</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1523,19 +1536,21 @@ <methodparam><type>string</type><parameter>query</parameter></methodparam> </methodsynopsis> <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 or PL/SQL block. + Az <function>OCIParse</function> feldolgozz a + <parameter>query</parameter> paraméterben megadott SQL + lekérdezést a <parameter>conn</parameter> kapcsolaton. + A parancs azonosítóval tér vissza, ha a lekérdezés + érvényes volt, &false; értéket ad egyébként. A + <parameter>query</parameter> paramétert bármilyen + érvényes SQL parancs vagy PL/SQL blokk lehet. </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>A legutóbbi parancs / kapcsolat / általános hiba visszaadása </refpurpose> </refnamediv> <refsect1> @@ -1545,14 +1560,13 @@ <methodparam choice="opt"><type>int</type><parameter>stmt|conn|global</parameter></methodparam> </methodsynopsis> <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. + Az <function>OCIError</function> a legutóbbi hibát adja vissza. Ha + az opcionális <parameter>stmt|conn|global</parameter> paramétert nem + adod meg, a legutóbbi hibát kapod. Ha nem volt hiba, &false; értéket + kapsz. Az <function>OCIError</function> egy asszociatív tömbben adja + vissza a hibát. Ebben a tömbben a <parameter>code</parameter> + az Oracle hibakód, a <parameter>message</parameter> az Oracle + hibaüzenet karaktersorozat. </simpara> </refsect1> </refentry> @@ -1561,8 +1575,7 @@ <refnamediv> <refname>OCIInternalDebug</refname> <refpurpose> - Enables or disables internal debug output. By default it is - disabled + A belsõ debug kimenet engedélyezése / letiltása </refpurpose> </refnamediv> <refsect1> @@ -1572,9 +1585,10 @@ <methodparam><type>int</type><parameter>onoff</parameter></methodparam> </methodsynopsis> <simpara> - <function>OCIInternalDebug</function> enables internal debug - output. Set <parameter>onoff</parameter> to 0 to turn debug - output off, 1 to turn it on. + Az <function>OCIInternalDebug</function> engedélyezi a + belsõ debug kimenetet ha az <parameter>onoff</parameter> + paramétert 1 értékre állítod. Tiltásra a 0 értékkel van + lehetõség. </simpara> </refsect1> </refentry> @@ -1582,7 +1596,7 @@ <refentry id="function.ocicancel"> <refnamediv> <refname>OCICancel</refname> - <refpurpose>Cancel reading from cursor</refpurpose> + <refpurpose>Kurzorral olvasás befejezése</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1591,8 +1605,8 @@ <methodparam><type>int</type><parameter>stmt</parameter></methodparam> </methodsynopsis> <simpara> - If you do not want read more data from a cursor, then call - <function>OCICancel</function>. + Ha nem szeretnél több adatot olvasni egy kurzorral, + hívd meg ezt a függényt. </simpara> </refsect1> </refentry> @@ -1600,7 +1614,7 @@ <refentry id="function.ocisetprefetch"> <refnamediv> <refname>OCISetPrefetch</refname> - <refpurpose>sets number of rows to be prefetched</refpurpose> + <refpurpose>Az elõzetesen lehívott sorok számának beállítása</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> @@ -1610,7 +1624,8 @@ <methodparam><type>int</type><parameter>rows</parameter></methodparam> </methodsynopsis> <simpara> - Sets the number of top level rows to be prefetched. The default value is 1 row. + Beállítja az elõzetesen lehívott sorok számát. Az alapértelmezés + 1 sor. </simpara> </refsect1> </refentry>