<!-- 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 - SQL Dialects</TITLE>
</HEAD>
<BODY >
<CENTER>
<TABLE WIDTH=100%>
<TR> <TD WIDTH=100% ALIGN=CENTER>
<A HREF="sld001.htm">First</A>
<A HREF="sld077.htm">Previous</A>
<A HREF="sld079.htm">Next</A>
<A HREF="sld093.htm">Last</A>
<A HREF="index.htm">Index</A>
<A HREF="dbi.perl.org">Home</A>
<A HREF="tsld078.htm">Text</A>
</TD> </TR>
<TR> <TD WIDTH=100% ALIGN=CENTER>
<IMG SRC="img078.gif" usemap="#Objmap" WIDTH=800 HEIGHT=600 BORDER=0>
</TD> </TR>
</TABLE>
<P>Slide 78 of 93</P>
</CENTER>
<!-- <UL>
<H2>SQL Portability - SQL Dialects</H2>
</UL></P>
<P><UL>
<LI><H2>Most people are familiar with how to portably quote a string literal:
</H2>
<UL>
$dbh->quote($value)
<BR><UL>
<LI>
</UL></UL></UL><UL>
<LI><H2>Its now also possible to portably quote identifiers like table names:
</H2>
<UL>
$dbh->quote_identifier($name1, $name2, $name3, \%attr)
<BR><BR>For example:
<UL>
$dbh->quote_identifier( undef, 'Her schema', 'My table' );
<BR><BR>using DBD::Oracle: "Her schema"."My table
<BR>using DBD::mysql: `Her schema`.`My table`
</UL></UL></UL><UL>
<LI><H2>
</H2>
</UL><UL>
<LI><H2>If three names are supplied then the first is assumed to be a catalog name and special rules may be applied based on what get_info() returns for SQL_CATALOG_NAME_SEPARATOR and SQL_CATALOG_LOCATION. For example:
</H2>
<UL>
$dbh->quote_identifier( link, schema, table );
<BR><BR>using DBD::Oracle: "schema"."table"@"link"</UL></UL></P>
<P> -->
</Body>
</HTML>