<!-- Presentation generated by Internet Assistant for Microsoft PowerPoint 97 -->
<HTML>
<HEAD>
<meta name="GENERATOR" content="Microsoft Internet Assistant for Microsoft PowerPoint 97">
<TITLE>SQL Portability - Metadata</TITLE>
</HEAD>
<BODY >
<CENTER>
<TABLE WIDTH=100%>
<TR> <TD WIDTH=100% ALIGN=CENTER>
<A HREF="sld001.htm">First</A>
<A HREF="sld079.htm">Previous</A>
<A HREF="sld081.htm">Next</A>
<A HREF="sld093.htm">Last</A>
<A HREF="index.htm">Index</A>
<A HREF="dbi.perl.org">Home</A>
<A HREF="tsld080.htm">Text</A>
</TD> </TR>
<TR> <TD WIDTH=100% ALIGN=CENTER>
<IMG SRC="img080.gif" usemap="#Objmap" WIDTH=800 HEIGHT=600 BORDER=0>
</TD> </TR>
</TABLE>
<P>Slide 80 of 93</P>
</CENTER>
<!-- <UL>
<H2>SQL Portability - Metadata</H2>
</UL></P>
<P><UL>
<LI><H2>Getting data about your data:
</H2>
<UL>
$sth = $dbh->table_info( ... )
<BR><UL>
<LI>Now allows parameters to qualify which tables you want info on
</UL>$sth = $dbh->column_info($cat, $schema, $table, $col);
<UL>
<LI>Returns information about the columns of a table
</UL>$sth = $dbh->primary_key_info($cat, $schema, $table);
<UL>
<LI>Returns information about the primary keys of a table
</UL>@keys = $dbh->primary_key($cat, $schema, $table);
<UL>
<LI>Simpler way to return information about the primary keys of a table
</UL>$sth = $dbh->foreign_key_info($pkc, $pks, $pkt, $fkc, $fks, $fkt);
<UL>
<LI>Returns information about foreign keys
<LI>
</UL></UL></UL><UL>
<LI><H2>These, and the features on the previous SQL Portability slides, are all fairly new so may not be supported by your driver yet. If not
offer to help implement them!</H2>
</UL></P>
<P> -->
</Body>
</HTML>