<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >db2_exec</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="Manual do PHP" HREF="index.html"><LINK REL="UP" TITLE="IBM DB2, Cloudscape and Apache Derby Functions" HREF="ref.ibm-db2.html"><LINK REL="PREVIOUS" TITLE="db2_escape_string" HREF="function.db2-escape-string.html"><LINK REL="NEXT" TITLE="db2_execute" HREF="function.db2-execute.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Manual do PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.db2-escape-string.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.db2-execute.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.db2-exec" ></A >db2_exec</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN76287" ></A ><P > (PECL)</P >db2_exec -- Executes an SQL statement directly </DIV ><DIV CLASS="refsect1" ><A NAME="AEN76290" ></A ><H2 >Descrição</H2 >resource <B CLASS="methodname" >db2_exec</B > ( resource connection, string statement [, array options] )<BR ></BR ><P > Executes an SQL statement directly. </P ><P > If you plan to interpolate PHP variables into the SQL statement, understand that this is one of the more common security exposures. Consider calling <A HREF="function.db2-prepare.html" ><B CLASS="function" >db2_prepare()</B ></A > to prepare an SQL statement with parameter markers for input values. Then you can call <A HREF="function.db2-execute.html" ><B CLASS="function" >db2_execute()</B ></A > to pass in the input values and avoid SQL injection attacks. </P ><P > If you plan to repeatedly issue the same SQL statement with different parameters, consider calling <A HREF="function.db2-prepare.html" ><B CLASS="function" >db2_prepare()</B ></A > and <A HREF="function.db2-execute.html" ><B CLASS="function" >db2_execute()</B ></A > to enable the database server to reuse its access plan and increase the efficiency of your database access. </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN76311" ></A ><H2 >Parâmetros</H2 ><P > <P ></P ><DIV CLASS="variablelist" ><DL ><DT ><CODE CLASS="parameter" >connection</CODE ></DT ><DD ><P > A valid database connection resource variable as returned from <A HREF="function.db2-connect.html" ><B CLASS="function" >db2_connect()</B ></A > or <A HREF="function.db2-pconnect.html" ><B CLASS="function" >db2_pconnect()</B ></A >. </P ></DD ><DT ><CODE CLASS="parameter" >statement</CODE ></DT ><DD ><P > An SQL statement. The statement cannot contain any parameter markers. </P ></DD ><DT ><CODE CLASS="parameter" >options</CODE ></DT ><DD ><P > An associative array containing statement options. You can use this parameter to request a scrollable cursor on database servers that support this functionality. <P ></P ><DIV CLASS="variablelist" ><DL ><DT ><CODE CLASS="parameter" >cursor</CODE ></DT ><DD ><P > Passing the <TT CLASS="literal" >DB2_FORWARD_ONLY</TT > value requests a forward-only cursor for this SQL statement. This is the default type of cursor, and it is supported by all database servers. It is also much faster than a scrollable cursor. </P ><P > Passing the <TT CLASS="literal" >DB2_SCROLLABLE</TT > value requests a scrollable cursor for this SQL statement. This type of cursor enables you to fetch rows non-sequentially from the database server. However, it is only supported by DB2 servers, and is much slower than forward-only cursors. </P ></DD ></DL ></DIV > </P ></DD ></DL ></DIV > </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN76341" ></A ><H2 >Valores de retornado</H2 ><P > Returns a statement resource if the SQL statement was issued successfully, or <TT CLASS="constant" ><B >FALSE</B ></TT > if the database failed to execute the SQL statement. </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN76345" ></A ><H2 >Exemplos</H2 ><P > <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="EXAMPLE" ><TR ><TD ><DIV CLASS="example" ><A NAME="AEN76348" ></A ><P ><B >Exemplo 1. Creating a table with <B CLASS="function" >db2_exec()</B ></B ></P ><P > The following example uses <B CLASS="function" >db2_exec()</B > to issue a set of DDL statements in the process of creating a table. </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><code><font color="#000000"> <font color="#0000BB"><?php<br />$conn </font><font color="#007700">= </font><font color="#0000BB">db2_connect</font><font color="#007700">(</font><font color="#0000BB">$database</font><font color="#007700">, </font><font color="#0000BB">$user</font><font color="#007700">, </font><font color="#0000BB">$password</font><font color="#007700">);<br /><br /></font><font color="#FF8000">// Create the test table<br /></font><font color="#0000BB">$create </font><font color="#007700">= </font><font color="#DD0000">'CREATE TABLE animals (id INTEGER, breed VARCHAR(32),<br /> name CHAR(16), weight DECIMAL(7,2))'</font><font color="#007700">;<br /></font><font color="#0000BB">$result </font><font color="#007700">= </font><font color="#0000BB">db2_exec</font><font color="#007700">(</font><font color="#0000BB">$conn</font><font color="#007700">, </font><font color="#0000BB">$create</font><font color="#007700">);<br />if (</font><font color="#0000BB">$result</font><font color="#007700">) {<br /> print </font><font color="#DD0000">"Successfully created the table.\n"</font><font color="#007700">;<br />}<br /><br /></font><font color="#FF8000">// Populate the test table<br /></font><font color="#0000BB">$animals </font><font color="#007700">= array(<br /> array(</font><font color="#0000BB">0</font><font color="#007700">, </font><font color="#DD0000">'cat'</font><font color="#007700">, </font><font color="#DD0000">'Pook'</font><font color="#007700">, </font><font color="#0000BB">3.2</font><font color="#007700">),<br /> array(</font><font color="#0000BB">1</font><font color="#007700">, </font><font color="#DD0000">'dog'</font><font color="#007700">, </font><font color="#DD0000">'Peaches'</font><font color="#007700">, </font><font color="#0000BB">12.3</font><font color="#007700">),<br /> array(</font><font color="#0000BB">2</font><font color="#007700">, </font><font color="#DD0000">'horse'</font><font color="#007700">, </font><font color="#DD0000">'Smarty'</font><font color="#007700">, </font><font color="#0000BB">350.0</font><font color="#007700">),<br /> array(</font><font color="#0000BB">3</font><font color="#007700">, </font><font color="#DD0000">'gold fish'</font><font color="#007700">, </font><font color="#DD0000">'Bubbles'</font><font color="#007700">, </font><font color="#0000BB">0.1</font><font color="#007700">),<br /> array(</font><font color="#0000BB">4</font><font color="#007700">, </font><font color="#DD0000">'budgerigar'</font><font color="#007700">, </font><font color="#DD0000">'Gizmo'</font><font color="#007700">, </font><font color="#0000BB">0.2</font><font color="#007700">),<br /> array(</font><font color="#0000BB">5</font><font color="#007700">, </font><font color="#DD0000">'goat'</font><font color="#007700">, </font><font color="#DD0000">'Rickety Ride'</font><font color="#007700">, </font><font color="#0000BB">9.7</font><font color="#007700">),<br /> array(</font><font color="#0000BB">6</font><font color="#007700">, </font><font color="#DD0000">'llama'</font><font color="#007700">, </font><font color="#DD0000">'Sweater'</font><font color="#007700">, </font><font color="#0000BB">150</font><font color="#007700">)<br />);<br /><br />foreach (</font><font color="#0000BB">$animals </font><font color="#007700">as </font><font color="#0000BB">$animal</font><font color="#007700">) {<br /> </font><font color="#0000BB">$rc </font><font color="#007700">= </font><font color="#0000BB">db2_exec</font><font color="#007700">(</font><font color="#0000BB">$conn</font><font color="#007700">, </font><font color="#DD0000">"INSERT INTO animals (id, breed, name, weight)<br /> VALUES (</font><font color="#007700">{</font><font color="#DD0000">$animal</font><font color="#007700">[</font><font color="#DD0000">0</font><font color="#007700">]}</font><font color="#DD0000">, '</font><font color="#007700">{</font><font color="#DD0000">$animal</font><font color="#007700">[</font><font color="#DD0000">1</font><font color="#007700">]}</font><font color="#DD0000">', '</font><font color="#007700">{</font><font color="#DD0000">$animal</font><font color="#007700">[</font><font color="#DD0000">2</font><font color="#007700">]}</font><font color="#DD0000">', </font><font color="#007700">{</font><font color="#DD0000">$animal</font><font color="#007700">[</font><font color="#DD0000">3</font><font color="#007700">]}</font><font color="#DD0000">)"</font><font color="#007700">);<br /> if (</font><font color="#0000BB">$rc</font><font color="#007700">) {<br /> print </font><font color="#DD0000">"Insert... "</font><font color="#007700">;<br /> }<br />}<br /></font><font color="#0000BB">?></font> </font> </code></TD ></TR ></TABLE ><P >O exemplo acima irá imprimir:</P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="screen" >Successfully created the table. Insert... Insert... Insert... Insert... Insert... Insert... Insert...</PRE ></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE > <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="EXAMPLE" ><TR ><TD ><DIV CLASS="example" ><A NAME="AEN76356" ></A ><P ><B >Exemplo 2. Executing a SELECT statement with a scrollable cursor</B ></P ><P > The following example demonstrates how to request a scrollable cursor for an SQL statement issued by <B CLASS="function" >db2_exec()</B >. </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><code><font color="#000000"> <font color="#0000BB"><?php<br />$conn </font><font color="#007700">= </font><font color="#0000BB">db2_connect</font><font color="#007700">(</font><font color="#0000BB">$database</font><font color="#007700">, </font><font color="#0000BB">$user</font><font color="#007700">, </font><font color="#0000BB">$password</font><font color="#007700">);<br /></font><font color="#0000BB">$sql </font><font color="#007700">= </font><font color="#DD0000">"SELECT name FROM animals<br /> WHERE weight < 10.0<br /> ORDER BY name"</font><font color="#007700">;<br />if (</font><font color="#0000BB">$conn</font><font color="#007700">) {<br /> require_once(</font><font color="#DD0000">'prepare.inc'</font><font color="#007700">);<br /> </font><font color="#0000BB">$stmt </font><font color="#007700">= </font><font color="#0000BB">db2_exec</font><font color="#007700">(</font><font color="#0000BB">$conn</font><font color="#007700">, </font><font color="#0000BB">$sql</font><font color="#007700">, array(</font><font color="#DD0000">'cursor' </font><font color="#007700">=> </font><font color="#0000BB">DB2_SCROLLABLE</font><font color="#007700">));<br /> while (</font><font color="#0000BB">$row </font><font color="#007700">= </font><font color="#0000BB">db2_fetch_array</font><font color="#007700">(</font><font color="#0000BB">$stmt</font><font color="#007700">)) {<br /> print </font><font color="#DD0000">"$row</font><font color="#007700">[</font><font color="#DD0000">0</font><font color="#007700">]\n</font><font color="#DD0000">"</font><font color="#007700">;<br /> }<br />} <br /></font><font color="#0000BB">?></font> </font> </code></TD ></TR ></TABLE ><P >O exemplo acima irá imprimir:</P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="screen" >Bubbles Gizmo Pook Rickety Ride</PRE ></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE > <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="EXAMPLE" ><TR ><TD ><DIV CLASS="example" ><A NAME="AEN76363" ></A ><P ><B >Exemplo 3. Returning XML data as a SQL ResultSet</B ></P ><P > The following example demonstrates how to work with documents stored in a XML column using the SAMPLE database. Using some pretty simple SQL/XML, this example returns some of the nodes in a XML document in a SQL ResultSet format that most users are familiar with. </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><code><font color="#000000"> <font color="#0000BB"><?php<br /> <br />$conn </font><font color="#007700">= </font><font color="#0000BB">db2_connect</font><font color="#007700">(</font><font color="#DD0000">"SAMPLE"</font><font color="#007700">, </font><font color="#DD0000">"db2inst1"</font><font color="#007700">, </font><font color="#DD0000">"ibmdb2"</font><font color="#007700">);<br /><br /></font><font color="#0000BB">$query </font><font color="#007700">= </font><font color="#DD0000">'SELECT * FROM XMLTABLE(<br /> XMLNAMESPACES (DEFAULT \'http://posample.org\'),<br /> \'db2-fn:xmlcolumn("CUSTOMER.INFO")/customerinfo\'<br /> COLUMNS<br /> "CID" VARCHAR (50) PATH \'@Cid\',<br /> "NAME" VARCHAR (50) PATH \'name\',<br /> "PHONE" VARCHAR (50) PATH \'phone [ @type = "work"]\'<br /> ) AS T<br /> WHERE NAME = \'Kathy Smith\'<br /> '</font><font color="#007700">;<br /></font><font color="#0000BB">$stmt </font><font color="#007700">= </font><font color="#0000BB">db2_exec</font><font color="#007700">(</font><font color="#0000BB">$conn</font><font color="#007700">, </font><font color="#0000BB">$query</font><font color="#007700">);<br /> <br />while(</font><font color="#0000BB">$row </font><font color="#007700">= </font><font color="#0000BB">db2_fetch_object</font><font color="#007700">(</font><font color="#0000BB">$stmt</font><font color="#007700">)){<br /> </font><font color="#0000BB">printf</font><font color="#007700">(</font><font color="#DD0000">"$row</font><font color="#007700">-></font><font color="#DD0000">CID $row</font><font color="#007700">-></font><font color="#DD0000">NAME $row</font><font color="#007700">-></font><font color="#DD0000">PHONE</font><font color="#007700">\n</font><font color="#DD0000">"</font><font color="#007700">);<br />}<br /></font><font color="#0000BB">db2_close</font><font color="#007700">(</font><font color="#0000BB">$conn</font><font color="#007700">);<br /><br /></font><font color="#0000BB">?></font> </font> </code></TD ></TR ></TABLE ><P >O exemplo acima irá imprimir:</P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="screen" >1000 Kathy Smith 416-555-1358 1001 Kathy Smith 905-555-7258</PRE ></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE > <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="EXAMPLE" ><TR ><TD ><DIV CLASS="example" ><A NAME="AEN76369" ></A ><P ><B >Exemplo 4. Performing a "JOIN" with XML data</B ></P ><P > The following example works with documents stored in 2 different XML columns in the SAMPLE database. It creates 2 temporary tables from the XML documents from 2 different columns and returns a SQL ResultSet with information regarding shipping status for the customer. </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><code><font color="#000000"> <font color="#0000BB"><?php<br /> <br />$conn </font><font color="#007700">= </font><font color="#0000BB">db2_connect</font><font color="#007700">(</font><font color="#DD0000">"SAMPLE"</font><font color="#007700">, </font><font color="#DD0000">"db2inst1"</font><font color="#007700">, </font><font color="#DD0000">"ibmdb2"</font><font color="#007700">);<br /> <br /></font><font color="#0000BB">$query </font><font color="#007700">= </font><font color="#DD0000">'<br /> SELECT A.CID, A.NAME, A.PHONE, C.PONUM, C.STATUS<br /> FROM<br /> XMLTABLE(<br /> XMLNAMESPACES (DEFAULT \'http://posample.org\'),<br /> \'db2-fn:xmlcolumn("CUSTOMER.INFO")/customerinfo\'<br /> COLUMNS<br /> "CID" BIGINT PATH \'@Cid\',<br /> "NAME" VARCHAR (50) PATH \'name\',<br /> "PHONE" VARCHAR (50) PATH \'phone [ @type = "work"]\'<br /> ) as A,<br /> PURCHASEORDER AS B,<br /> XMLTABLE (<br /> XMLNAMESPACES (DEFAULT \'http://posample.org\'),<br /> \'db2-fn:xmlcolumn("PURCHASEORDER.PORDER")/PurchaseOrder\'<br /> COLUMNS<br /> "PONUM" BIGINT PATH \'@PoNum\',<br /> "STATUS" VARCHAR (50) PATH \'@Status\'<br /> ) as C<br /> WHERE A.CID = B.CUSTID AND<br /> B.POID = C.PONUM AND<br /> A.NAME = \'Kathy Smith\'<br />'</font><font color="#007700">;<br /> <br /></font><font color="#0000BB">$stmt </font><font color="#007700">= </font><font color="#0000BB">db2_exec</font><font color="#007700">(</font><font color="#0000BB">$conn</font><font color="#007700">, </font><font color="#0000BB">$query</font><font color="#007700">);<br /> <br />while(</font><font color="#0000BB">$row </font><font color="#007700">= </font><font color="#0000BB">db2_fetch_object</font><font color="#007700">(</font><font color="#0000BB">$stmt</font><font color="#007700">)){<br /> </font><font color="#0000BB">printf</font><font color="#007700">(</font><font color="#DD0000">"$row</font><font color="#007700">-></font><font color="#DD0000">CID $row</font><font color="#007700">-></font><font color="#DD0000">NAME $row</font><font color="#007700">-></font><font color="#DD0000">PHONE $row</font><font color="#007700">-></font><font color="#DD0000">PONUM $row</font><font color="#007700">-></font><font color="#DD0000">STATUS</font><font color="#007700">\n</font><font color="#DD0000">"</font><font color="#007700">);<br />}<br /> <br /></font><font color="#0000BB">db2_close</font><font color="#007700">(</font><font color="#0000BB">$conn</font><font color="#007700">);<br /><br /></font><font color="#0000BB">?></font> </font> </code></TD ></TR ></TABLE ><P >O exemplo acima irá imprimir:</P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="screen" >1001 Kathy Smith 905-555-7258 5002 Shipped</PRE ></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE > <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="EXAMPLE" ><TR ><TD ><DIV CLASS="example" ><A NAME="AEN76375" ></A ><P ><B >Exemplo 5. Returning SQL data as part of a larger XML document</B ></P ><P > The following example works with a portion of the PRODUCT.DESCRIPTION documents in the SAMPLE database. It creates a XML document containing product description (XML data) and pricing info (SQL data). </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><code><font color="#000000"> <font color="#0000BB"><?php<br /><br />$conn </font><font color="#007700">= </font><font color="#0000BB">db2_connect</font><font color="#007700">(</font><font color="#DD0000">"SAMPLE"</font><font color="#007700">, </font><font color="#DD0000">"db2inst1"</font><font color="#007700">, </font><font color="#DD0000">"ibmdb2"</font><font color="#007700">);<br /><br /></font><font color="#0000BB">$query </font><font color="#007700">= </font><font color="#DD0000">'<br />SELECT<br />XMLSERIALIZE(<br />XMLQUERY(\'<br /> declare boundary-space strip;<br /> declare default element namespace "http://posample.org";<br /> <promoList> {<br /> for $prod in $doc/product<br /> where $prod/description/price < 10.00<br /> order by $prod/description/price ascending<br /> return(<br /> <promoitem> {<br /> $prod,<br /> <startdate> {$start} </startdate>,<br /> <enddate> {$end} </enddate>,<br /> <promoprice> {$promo} </promoprice><br /> } </promoitem><br /> )<br /> } </promoList><br />\' passing by ref DESCRIPTION AS "doc",<br />PROMOSTART as "start",<br />PROMOEND as "end",<br />PROMOPRICE as "promo"<br />RETURNING SEQUENCE)<br />AS CLOB (32000))<br />AS NEW_PRODUCT_INFO<br />FROM PRODUCT<br />WHERE PID = \'100-100-01\'<br />'</font><font color="#007700">;<br /><br /></font><font color="#0000BB">$stmt </font><font color="#007700">= </font><font color="#0000BB">db2_exec</font><font color="#007700">(</font><font color="#0000BB">$conn</font><font color="#007700">, </font><font color="#0000BB">$query</font><font color="#007700">);<br /><br />while(</font><font color="#0000BB">$row </font><font color="#007700">= </font><font color="#0000BB">db2_fetch_array</font><font color="#007700">(</font><font color="#0000BB">$stmt</font><font color="#007700">)){<br /> </font><font color="#0000BB">printf</font><font color="#007700">(</font><font color="#DD0000">"$row</font><font color="#007700">[</font><font color="#DD0000">0</font><font color="#007700">]\n</font><font color="#DD0000">"</font><font color="#007700">);<br />}<br /></font><font color="#0000BB">db2_close</font><font color="#007700">(</font><font color="#0000BB">$conn</font><font color="#007700">);<br /><br /></font><font color="#0000BB">?></font> </font> </code></TD ></TR ></TABLE ><P >O exemplo acima irá imprimir:</P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="screen" ><promoList xmlns="http://posample.org"> <promoitem> <product pid="100-100-01"> <description> <name>Snow Shovel, Basic 22 inch</name> <details>Basic Snow Shovel, 22 inches wide, straight handle with D-Grip</details> <price>9.99</price> <weight>1 kg</weight> </description> </product> <startdate>2004-11-19</startdate> <enddate>2004-12-19</enddate> <promoprice>7.25</promoprice> </promoitem> </promoList></PRE ></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE > </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN76381" ></A ><H2 >Veja também</H2 ><P > <P ></P ><TABLE BORDER="0" ><TBODY ><TR ><TD ><A HREF="function.db2-execute.html" ><B CLASS="function" >db2_execute()</B ></A ></TD ></TR ><TR ><TD ><A HREF="function.db2-prepare.html" ><B CLASS="function" >db2_prepare()</B ></A ></TD ></TR ></TBODY ></TABLE ><P ></P > </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.db2-escape-string.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Principal</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.db2-execute.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >db2_escape_string</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.ibm-db2.html" ACCESSKEY="U" >Acima</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >db2_execute</TD ></TR ></TABLE ></DIV ></BODY ></HTML >