Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\online_help\tdddg\tdddg_subprograms004.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <script src="./callback.js" type="text/javascript"></script> <noscript>Your browser does not support JavaScript. This help page requires JavaScript to render correctly.</noscript> </head> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta name="generator" content="Oracle DARB XHTML Converter (Mode = ohj/ohw) - Version 5.1.1 Build 005" /> <meta name="date" content="2009-04-21T9:46:24Z" /> <meta name="robots" content="noarchive" /> <meta name="doctitle" content="About PL/SQL Data Types" /> <meta name="relnum" content="11g Release 2 (11.2)" /> <meta name="partnum" content="E10766-01" /> <link rel="copyright" href="./dcommon/html/cpyr.htm" title="Copyright" type="text/html" /> <link rel="stylesheet" href="./dcommon/css/blafdoc.css" title="Oracle BLAFDoc" type="text/css" /> <link rel="contents" href="toc.htm" title="Contents" type="text/html" /> <link rel="prev" href="tdddg_subprograms003.htm" title="Previous" type="text/html" /> <link rel="next" href="tdddg_subprograms005.htm" title="Next" type="text/html" /> <title>About PL/SQL Data Types</title> </head> <body> <div class="zz-skip-header"><a href="#BEGIN">Skip Headers</a></div> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr valign="bottom"> <td align="left"></td> <td align="center"><a href="tdddg_subprograms003.htm"><img width="24" height="24" src="./dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="tdddg_subprograms005.htm"><img width="24" height="24" src="./dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> <p><a id="BABJDDFH" name="BABJDDFH"></a><a id="TDDDG42100" name="TDDDG42100"></a></p> <div class="sect1"><!-- infolevel="all" infotype="General" --> <h1>About PL/SQL Data Types</h1> <a name="BEGIN" id="BEGIN"></a> <p><a id="sthref326" name="sthref326"></a><a id="sthref327" name="sthref327"></a><a id="sthref328" name="sthref328"></a><a id="sthref329" name="sthref329"></a><a id="sthref330" name="sthref330"></a><a id="sthref331" name="sthref331"></a>Every PL/SQL constant, variable, subprogram parameter, and <a id="sthref332" name="sthref332"></a>function return value has a data type that determines its storage format, constraints, valid range of values, and operations that can be performed on it.</p> <p>A PL/SQL data type is either a SQL data type (such as <code>VARCHAR2</code>, <code>NUMBER</code>, and <code>DATE</code>) or a PL/SQL-only data type. The latter include <code>BOOLEAN</code>, <code>RECORD</code>, <code>REF</code> <code>CURSOR</code>, and many predefined subtypes. PL/SQL also lets you define your own subtypes.</p> <p>A <a id="sthref333" name="sthref333"></a><a id="sthref334" name="sthref334"></a><span class="bold">subtype</span> is a subset of another data type, which is called its <a id="sthref335" name="sthref335"></a><a id="sthref336" name="sthref336"></a><span class="bold">base type</span>. A subtype has the same valid operations as its base type, but only a subset of its valid values. Subtypes can increase reliability, provide compatibility with ANSI/ISO types, and improve readability by indicating the intended use of constants and variables.</p> <p>The predefined numeric subtype <a id="sthref337" name="sthref337"></a><code>PLS_INTEGER</code> is especially useful, because its operations use hardware arithmetic, rather than the library arithmetic that its base type uses.</p> <p>You cannot use PL/SQL-only data types at schema level (that is, in tables or standalone stored subprograms). Therefore, to use them in a stored subprogram, you must put the subprogram in a package.</p> <div class="helpinfonotealso"> <h2>Related Topics</h2> <p><a href="javascript:open('http://www.oracle.com/pls/db112/lookup?id=LNPLS003','newWindow').focus()"><span class="italic">Oracle Database PL/SQL Language Reference</span></a> for general information about PL/SQL data types</p> <p><a href="javascript:open('http://www.oracle.com/pls/db112/lookup?id=LNPLS00305','newWindow').focus()"><span class="italic">Oracle Database PL/SQL Language Reference</span></a> for information about the <code>PLS_INTEGER</code> data type</p> <p><a href="tdddg_objects004.htm#BABDACBC">About SQL Data Types</a></p> <p><a href="tdddg_subprograms.htm#CIHDFDJG">Developing Stored Subprograms and Packages</a></p> </div> </div> <!-- class="sect1" --> <!-- Start Footer --> <div class="footer"> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr> <td align="left"><span class="copyrightlogo">Copyright © 1996, 2009, Oracle and/or its affiliates. All rights reserved.</span><br /> <a href="./dcommon/html/cpyr.htm"><span class="copyrightlogo">Legal Notices</span></a></td> <td align="center"><a href="tdddg_subprograms003.htm"><img width="24" height="24" src="./dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="tdddg_subprograms005.htm"><img width="24" height="24" src="./dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> </div> <!-- class="footer" --> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de