The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

<!--  Presentation generated by Internet Assistant for Microsoft PowerPoint 97 -->

<HTML>
<HEAD>

<meta name="GENERATOR" content="Microsoft Internet Assistant for Microsoft PowerPoint 97">
 <TITLE>First, the simple stuff...</TITLE> 
</HEAD>

<BODY     >

<CENTER>
<TABLE WIDTH=100%> 
     <TR> <TD WIDTH=100% ALIGN=CENTER>
         <A HREF="sld001.htm">First</A>&nbsp;&nbsp;
         <A HREF="sld033.htm">Previous</A>&nbsp;&nbsp;
         <A HREF="sld035.htm">Next</A>&nbsp;&nbsp;
         <A HREF="sld093.htm">Last</A>&nbsp;&nbsp;
&nbsp;&nbsp;         <A HREF="index.htm">Index</A>&nbsp;&nbsp;
         <A HREF="dbi.perl.org">Home</A>&nbsp;&nbsp;
         <A HREF="tsld034.htm">Text</A>&nbsp;&nbsp;
     </TD> </TR>
     <TR> <TD WIDTH=100% ALIGN=CENTER>
         <IMG SRC="img034.gif" usemap="#Objmap" WIDTH=800 HEIGHT=600 BORDER=0>
     </TD> </TR>
</TABLE>
<P>Slide 34 of 93</P>
</CENTER>
<!-- <UL>
<H2>First, the simple stuff...</H2>
</UL></P>
<P><UL>
<LI><H2>After calling prepare() on a statement with placeholders:
</H2>
<UL>
$sth = $dbh-&#062prepare(“select * from table where k1=? and k2=?”);
<BR><UL>
<LI>
</UL></UL></UL><UL>
<LI><H2>Values need to be assigned (‘bound’) to each placeholder before the database can execute the statement
</H2>
<UL>
<LI>
</UL></UL><UL>
<LI><H2>Either at execute, for simple cases:
</H2>
<UL>
$sth-&#062execute($p1, $p2);
<BR><UL>
<LI>
</UL></UL></UL><UL>
<LI><H2>or before execute:
</H2>
<UL>
$sth-&#062bind_param(1, $p1);
<BR><BR>$sth-&#062bind_param(2, $p2);
<BR>$sth-&#062execute;</UL></UL></P>
<P>  -->
</Body>
</HTML>