cvs: phpdoc-hu /reference/sqlite/functions sqlite-array-query.xml

From: Date: Sat, 15 Jan 2005 10:36:25 +0000
Subject: cvs: phpdoc-hu /reference/sqlite/functions sqlite-array-query.xml
Groups: php.doc.hu 
Request: Send a blank email to doc-hu+get-1202@lists.php.net to get a copy of this message
cece Sat Jan 15 05:36:25 2005 EDT Modified files: /phpdoc-hu/reference/sqlite/functions sqlite-array-query.xml Log: sync http://cvs.php.net/diff.php/phpdoc-hu/reference/sqlite/functions/sqlite-array-query.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-hu/reference/sqlite/functions/sqlite-array-query.xml diff -u phpdoc-hu/reference/sqlite/functions/sqlite-array-query.xml:1.1 phpdoc-hu/reference/sqlite/functions/sqlite-array-query.xml:1.2 --- phpdoc-hu/reference/sqlite/functions/sqlite-array-query.xml:1.1 Sat Aug 7 07:18:15 2004 +++ phpdoc-hu/reference/sqlite/functions/sqlite-array-query.xml Sat Jan 15 05:36:23 2005 @@ -1,8 +1,9 @@ <?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.8 Maintainer: cece Status: ready --> +<!-- EN-Revision: 1.9 Maintainer: cece Status: ready --> <refentry id="function.sqlite-array-query"> <refnamediv> <refname>sqlite_array_query</refname> + <refname>SQLiteDatabase->arrayQuery</refname> <refpurpose>Végrehajt egy SQL kérés az adott adatbázison, az eredményt tömbben visszaadva</refpurpose> </refnamediv> <refsect1> @@ -21,6 +22,16 @@ <methodparam choice="opt"><type>int</type><parameter>result_type</parameter></methodparam> <methodparam choice="opt"><type>bool</type><parameter>decode_binary</parameter></methodparam> </methodsynopsis> + <para>Objektum orientált stílusban (eljárásként):</para> + <classsynopsis> + <ooclass><classname>SQLiteDatabase</classname></ooclass> + <methodsynopsis> + <type>array</type><methodname>arrayQuery</methodname> + <methodparam><type>string</type><parameter>query</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>result_type</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>decode_binary</parameter></methodparam> + </methodsynopsis> + </classsynopsis> <para> Az <function>sqlite_array_query</function> alkalmazása megfelel egy <function>sqlite_query</function>, majd egy ezt követõ ciklikus @@ -31,9 +42,13 @@ <function>sqlite_array_query</function> hívása jóval gyorsabb eredményt hoz, mint a lenti kódrészlet. </para> - <example> - <title><function>sqlite_array_query</function> sajátkezûleg</title> - <programlisting role="php"> + &sqlite.result-type; + &sqlite.case-fold; + &sqlite.decode-bin; + <para> + <example> + <title><function>sqlite_array_query</function> sajátkezûleg</title> + <programlisting role="php"> <![CDATA[ <?php $q = sqlite_query($dbhandle, "SELECT * from foo LIMIT 100"); @@ -43,8 +58,9 @@ } ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <tip> <para> Az <function>sqlite_array_query</function> leginkább a 45 vagy kevesebb @@ -55,6 +71,7 @@ ilyenkor sokkal erõforrástakarékosabb. </para> </tip> + &sqlite.param-compat; <para> Lásd még: <function>sqlite_query</function>,

« previous php.doc.hu (#1202) next »