<p style="text-align: center;"><strong><span style="font-size: large;"><span style="color: #ff0000;">oracle</span></span></strong></p>
<table class="MsoTableGrid" style="border-collapse: collapse;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0cm; width: 85.2pt; padding-top: 0cm; border: windowtext 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>数据类型</strong></span></p>
</td>
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 85.2pt; padding-top: 0cm; border-bottom: windowtext 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>取值范围</strong></span></p>
</td>
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 168pt; padding-top: 0cm; border-bottom: windowtext 1pt solid;" width="224" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>描述</strong></span></p>
</td>
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 87.7pt; padding-top: 0cm; border-bottom: windowtext 1pt solid;" width="117" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>备注</strong></span></p>
</td>
</tr>
<tr>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 1pt solid; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>Char(n)</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>n=1 to 2000字节</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 168pt; padding-top: 0cm; border-bottom: 1pt solid;" width="224" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>存储固定长度的字符串。默认长度为1。</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 87.7pt; padding-top: 0cm; border-bottom: 1pt solid;" width="117" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong> </strong></span></p>
</td>
</tr>
<tr>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 1pt solid; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>Varchar2(n)</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>n=1 to 4000字节</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 168pt; padding-top: 0cm; border-bottom: 1pt solid;" width="224" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>可变长的字符串,具体定义时指明最大长度n,<br />这种数据类型可以放数字、字母以及ASCII码字符集(或者EBCDIC等数据库系统接受的字符集标准)中的所有符号。<br />如果数据长度没有达到最大值n,Oracle 会根据数据大小自动调节字段长度,<br />如果你的数据前后有空格,Oracle 8会自动将其删去。VARCHAR2是最常用的数据类型。<br />可做索引的最大长度3209。Varchar2类型的字段长度可以达到4000字节,Varchar2类型的变量长度可以达到32676字节。</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 87.7pt; padding-top: 0cm; border-bottom: 1pt solid;" width="117" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>节省表空间:一个空的varchar2(2000)字段和一个空的varchar2(2)字段所占用的空间是一样的。</strong></span></p>
</td>
</tr>
<tr>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 1pt solid; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>Nchar(n)</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>n=1 to 2000字节</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 168pt; padding-top: 0cm; border-bottom: 1pt solid;" width="224" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>Unicode数据类型,只能存储utf-16和utf-8的数据。存储固定长度的字符串。</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 87.7pt; padding-top: 0cm; border-bottom: 1pt solid;" width="117" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong> </strong></span></p>
</td>
</tr>
<tr>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 1pt solid; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>Nvarchar2(n)</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>n=1 to 4000字节</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 168pt; padding-top: 0cm; border-bottom: 1pt solid;" width="224" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>Unicode数据类型,只能存储utf-16和utf-8的数据。存储变长字符串。</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 87.7pt; padding-top: 0cm; border-bottom: 1pt solid;" width="117" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong> </strong></span></p>
</td>
</tr>
<tr>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 1pt solid; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>Long</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>最大2G</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 168pt; padding-top: 0cm; border-bottom: 1pt solid;" width="224" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>可变长字符列,最大长度限制是2GB,用于不需要作字符串搜索的长串数据,如果要进行字符搜索就要用varchar2类型。<br />long是一种较老的数据类型,将来会逐渐被BLOB、CLOB、NCLOB等大的对象数据类型所取代。</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 87.7pt; padding-top: 0cm; border-bottom: 1pt solid;" width="117" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>在不同系统间移动需要进行转换。</strong></span></p>
</td>
</tr>
<tr>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 1pt solid; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>Clob</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>最大4G</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 168pt; padding-top: 0cm; border-bottom: 1pt solid;" width="224" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>存储单字节字符型数据。适用于存储超长文本。</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 87.7pt; padding-top: 0cm; border-bottom: 1pt solid;" width="117" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong> </strong></span></p>
</td>
</tr>
<tr>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 1pt solid; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>Nclob</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>最大4G</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 168pt; padding-top: 0cm; border-bottom: 1pt solid;" width="224" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>存储多字节国家字符型数据。适用于存储超长文本。</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 87.7pt; padding-top: 0cm; border-bottom: 1pt solid;" width="117" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong> </strong></span></p>
</td>
</tr>
<tr>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 1pt solid; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>Blob</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>最大4G</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 168pt; padding-top: 0cm; border-bottom: 1pt solid;" width="224" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>存储二进制数据。适用于存储图像、视频、音频等。</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 87.7pt; padding-top: 0cm; border-bottom: 1pt solid;" width="117" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong> </strong></span></p>
</td>
</tr>
<tr>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 1pt solid; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>Bfile</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>最大长度是4GB</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 168pt; padding-top: 0cm; border-bottom: 1pt solid;" width="224" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>在数据库外部保存的大型二进制对象文件,最大长度是4GB。这种外部的LOB类型,通过数据库记录变化情况,但是数据的具体保存是在数据库外部进行的。</strong></span></p>
<p class="MsoNormal"><span style="font-size: small;"><strong>Oracle 可以读取、查询BFILE,但是不能写入,不参与事务。</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 87.7pt; padding-top: 0cm; border-bottom: 1pt solid;" width="117" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong> </strong></span></p>
</td>
</tr>
<tr>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 1pt solid; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>Number(m,n)</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>m=1 to 38<br />n=-84 to 127</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 168pt; padding-top: 0cm; border-bottom: 1pt solid;" width="224" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>存储整数或浮点数。可变长的数值列,允许0、正值及负值,m是所有有效数字的位数,n是小数点以后的位数。<br />如:number(5,2),则这个字段的最大值是99,999,如果数值超出了位数限制就会被截取多余的位数。<br />如:number(5,2),但在一行数据中的这个字段输入575.316,则真正保存到字段中的数值是575.32。<br />如:number(3,0),输入575.316,真正保存的数据是575。</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 87.7pt; padding-top: 0cm; border-bottom: 1pt solid;" width="117" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong> </strong></span></p>
</td>
</tr>
<tr>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 1pt solid; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>Date</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong> </strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 168pt; padding-top: 0cm; border-bottom: 1pt solid;" width="224" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>数据类型用来存储日期和时间格式的数据。默认格式:DD-MON-YYYY。从公元前4712年1月1日到公元4712年12月31日的所有合法日期</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 87.7pt; padding-top: 0cm; border-bottom: 1pt solid;" width="117" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong> </strong></span></p>
</td>
</tr>
<tr>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 1pt solid; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>Row(n)</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>n=1 to 2000</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 168pt; padding-top: 0cm; border-bottom: 1pt solid;" width="224" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>可变长二进制数据,在具体定义字段的时候必须指明最大长度n,Oracle 用这种格式来保存较小的图形文件或带格式的文本文件,如Miceosoft Word文档。<br />raw是一种较老的数据类型,将来会逐渐被BLOB、CLOB、NCLOB等大的对象数据类型所取代。</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 87.7pt; padding-top: 0cm; border-bottom: 1pt solid;" width="117" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong> </strong></span></p>
</td>
</tr>
<tr>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 1pt solid; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>LongRow</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>最大长度是2GB。</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 168pt; padding-top: 0cm; border-bottom: 1pt solid;" width="224" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>可变长二进制数据,最大长度是2GB。Oracle 用这种格式来保存较大的图形文件或带格式的文本文件,如Miceosoft Word文档,以及音频、视频等非文本文件。<br />在同一张表中不能同时有long类型和long raw类型,long raw也是一种较老的数据类型,将来会逐渐被BLOB、CLOB、NCLOB等大的对象数据类型所取代。</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 87.7pt; padding-top: 0cm; border-bottom: 1pt solid;" width="117" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong> </strong></span></p>
</td>
</tr>
<tr>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 1pt solid; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>Rowid</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 85.2pt; padding-top: 0cm; border-bottom: 1pt solid;" width="114" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong> </strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 168pt; padding-top: 0cm; border-bottom: 1pt solid;" width="224" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong>数据类型是ORACLE数据表中的一个伪列,它是数据表中每行数据内在的唯一的标识。</strong></span></p>
</td>
<td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 87.7pt; padding-top: 0cm; border-bottom: 1pt solid;" width="117" valign="top">
<p class="MsoNormal"><span style="font-size: small;"><strong> </strong></span></p>
<p class="MsoNormal"><span style="font-size: small;"><strong><br /></strong></span></p>
<p class="MsoNormal"><span style="font-size: small;"><strong><br /></strong></span></p>
</td>
</tr>
</tbody>
</table>
<p><span style="font-size: small;">注:</span></p>
<p><span style="font-size: small;">1. Number的数据声明如下: <br />表示 作用 说明 <br />Number(p, s) 声明一个定点数 p(precision)为精度,s(scale)表示小数点右边的数字个 数,精度最大值为38,scale的取值范围为-84到127 <br />Number(p) 声明一个整数 相当于Number(p, 0) <br />Number 声明一个浮点数 其精度为38,要注意的是scale的值没有应用,也就是说scale的指不能简单的理解为0,或者其他的数。 <br /><br />定点数的精度(p)和刻度(s)遵循以下规则: <br /> 当一个数的整数部分的长度 > p-s 时,Oracle就会报错 <br /> 当一个数的小数部分的长度 > s 时,Oracle就会舍入。 <br /> 当s(scale)为负数时,Oracle就对小数点左边的s个数字进行舍入。 <br /> 当s > p 时, p表示小数点后第s位向左最多可以有多少位数字,如果大于p则Oracle报错,小数点后s位向右的数字被舍入 </span></p>
<p><span style="font-size: small;">2.Char、Varchar、Varchar2区别 </span></p>
<p><span style="font-size: small;"> ①.CHAR的长度是固定的,而VARCHAR2的长度是可以变化的, 比如,存储字符串“abc",对于CHAR (20),表示你存储的字符将占20个字节(包括17个空字符),而同样的VARCHAR2 (20)则只占用3个字节的长度,20只是最大值,当你存储的字符小于20时,按实际长度存储。 <br /> ②CHAR的效率比VARCHAR2的效率稍高。 <br /> ③目前VARCHAR是VARCHAR2的同义词。工业标准的VARCHAR类型可以存储空字符串,但是oracle不这样做,尽管它保留以后这样做的权利。Oracle自己开发了一个数据类型VARCHAR2,这个类型不是一个标准的VARCHAR,它将在数据库中varchar列可以存储空字符串的特性改为存储NULL值。如果你想有向后兼容的能力,Oracle建议使用VARCHAR2而不是VARCHAR。 <br /> 何时该用CHAR,何时该用varchar2? <br /> CHAR与VARCHAR2是一对矛盾的统一体,两者是互补的关系. <br /> VARCHAR2比CHAR节省空间,在效率上比CHAR会稍微差一些,即要想获得效率,就必须牺牲一定的空间,这也就是我们在数据库设计上常说的‘以空间换效率’。 <br /> VARCHAR2虽然比CHAR节省空间,但是如果一个VARCHAR2列经常被修改,而且每次被修改的数据的长度不同,这会引起‘行迁移’(Row Migration)现象,而这造成多余的I/O,是数据库设计和调整中要尽力避免的,在这种情况下用CHAR代替VARCHAR2会更好一些。</span></p>
<p><span style="font-size: small;"> ④varchar 是 ANSI 标准<br /> varchar2 是 oracle 标准<br /> 实际上本质目前是一样的,可以看做oracle搞出来的,oracle说:<br /> ANSI标准可能随着 SQL-92 / SQl-99/ SQL -NNN 等发生变化<br /> 但是oracle保证varchar2 永远兼容……<br /></span></p>
<p class="MsoNormal" style="text-align: center;" align="center"><strong><span style="font-size: 14pt; color: red; mso-bidi-font-size: 12.0pt;" lang="EN-US">Sql sever</span></strong></p>
<p class="MsoNormal" style="text-align: center;" align="center"><strong><span style="font-size: 14pt; color: red; mso-bidi-font-size: 12.0pt;" lang="EN-US"> </span></strong></p>
<div>
<table class="MsoNormalTable" style="width: 90%; background-color: white;" border="1" cellpadding="0">
<tbody>
<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes;">
<td style="width: 79.5pt; padding: 0.75pt;" width="106">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><strong><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型 </span></strong></p>
</td>
<td style="width: 97.5pt; padding: 0.75pt;" width="130">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><strong><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">类型 </span></strong></p>
</td>
<td style="padding: 0.75pt;" valign="top">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><strong><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">描<span lang="EN-US"> </span>述 </span></strong></p>
</td>
</tr>
<tr style="mso-yfti-irow: 1;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">bit </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">整型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">bit </span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型是整型,其值只能是<span lang="EN-US">0</span>、<span lang="EN-US">1</span>或空值。这种数据类型用于存储只有两种可能值的数据,如<span lang="EN-US">Yes </span>或<span lang="EN-US">No</span>、<span lang="EN-US">True </span>或<span lang="EN-US">Fa lse </span>、<span lang="EN-US">On </span>或<span lang="EN-US">Off </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 2;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">int </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">整型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">int </span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型可以存储从<span lang="EN-US">- 2<sup>31</sup>(-2147483648)</span>到<span lang="EN-US">2<sup>31</sup> (2147483 647)</span>之间的整数。存储到数据库的几乎所有数值型的数据都可以用这种数据类型。这种数据类型在数据库里占用<span lang="EN-US">4</span>个字节<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 3;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">smallint </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">整型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">smallint </span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型可以存储从<span lang="EN-US">- 2<sup>15</sup>(-32768)</span>到<span lang="EN-US">2<sup>15</sup>(32767)</span>之间的整数。这种数据类型对存储一些常限定在特定范围内的数值型数据非常有用。这种数据类型在数据库里占用<span lang="EN-US">2 </span>字节空间<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 4;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">tinyint </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">整型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">tinyint </span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型能存储从<span lang="EN-US">0</span>到<span lang="EN-US">255 </span>之间的整数。它在你只打算存储有限数目的数值时很有用。 这种数据类型在数据库中占用<span lang="EN-US">1 </span>个字节<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 5;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">numeric</span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">精确数值型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">numeric</span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型与<span lang="EN-US">decimal </span>型相同<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 6;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">decimal </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">精确数值型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">decimal </span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型能用来存储从<span lang="EN-US">-10<sup>38</sup>-1</span>到<span lang="EN-US">10<sup>38</sup>-1</span>的固定精度和范围的数值型数据。使用这种数据类型时,必须指定范围和精度。 范围是小数点左右所能存储的数字的总位数。精度是小数点右边存储的数字的位数<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 7;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">money </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">货币型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">money </span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型用来表示钱和货币值。这种数据类型能存储从<span lang="EN-US">-9220</span>亿到<span lang="EN-US">9220 </span>亿之间的数据,精确到货币单位的万分之一<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 8;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">smallmoney </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">货币型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">smallmoney </span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型用来表示钱和货币值。这种数据类型能存储从<span lang="EN-US">-214748.3648 </span>到<span lang="EN-US">214748.3647 </span>之间的数据,精确到货币单位的万分之一<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 9;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">float </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">近似数值型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">float </span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型是一种近似数值类型,供浮点数使用。说浮点数是近似的,是因为在其范围内不是所有的数都能精确表示。浮点数可以是从<span lang="EN-US">-1.79E+308</span>到<span lang="EN-US">1.79E+308 </span>之间的任意数<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 10;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">real </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">近似数值型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">real </span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型像浮点数一样,是近似数值类型。它可以表示数值在<span lang="EN-US">-3.40E+38</span>到<span lang="EN-US">3.40E+38</span>之间的浮点数<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 11;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">datetime </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">日期时间型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">datetime</span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型用来表示日期和时间。这种数据类型存储从<span lang="EN-US">1753</span>年<span lang="EN-US">1</span>月<span lang="EN-US">1</span>日到<span lang="EN-US">9999</span>年<span lang="EN-US">12</span>月<span lang="EN-US">3 1</span>日间所有的日期和时间数据, 精确到三百分之一秒或<span lang="EN-US">3.33</span>毫秒<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 12;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">Smalldatetime </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">日期时间型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">smalldatetime </span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型用来表示从<span lang="EN-US">1900</span>年<span lang="EN-US">1</span>月<span lang="EN-US">1</span>日到<span lang="EN-US">2079</span>年<span lang="EN-US">6</span>月<span lang="EN-US">6</span>日间的日期和时间,精确到一分钟<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 13;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">cursor </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">特殊数据型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">cursor </span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型是一种特殊的数据类型,它包含一个对游标的引用。这种数据类型用在存储过程中,而且创建表时不能用<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 14;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">timestamp </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">特殊数据型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">timestamp </span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型是一种特殊的数据类型,用来创建一个数据库范围内的唯一数码。 一个表中只能有一个<span lang="EN-US">timestamp</span>列。每次插入或修改一行时,<span lang="EN-US">timestamp</span>列的值都会改变。尽管它的名字中有<span lang="EN-US">“time”</span>, 但<span lang="EN-US">timestamp</span>列不是人们可识别的日期。在一个数据库里,<span lang="EN-US">timestamp</span>值是唯一的<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 15;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">Uniqueidentifier </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">特殊数据型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">Uniqueidentifier</span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型用来存储一个全局唯一标识符,即<span lang="EN-US">GUID</span>。<span lang="EN-US">GUID</span>确实是全局唯一的。这个数几乎没有机会在另一个系统中被重建。可以使用<span lang="EN-US">NEWID </span>函数或转换一个字符串为唯一标识符来初始化具有唯一标识符的列<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 16;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">char </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">字符型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">char</span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型用来存储指定长度的定长非统一编码型的数据。当定义一列为此类型时,你必须指定列长。当你总能知道要存储的数据的长度时,此数据类型很有用。例如,当你按邮政编码加<span lang="EN-US">4</span>个字符格式来存储数据时,你知道总要用到<span lang="EN-US">10</span>个字符。此数据类型的列宽最大为<span lang="EN-US">8000 </span>个字符<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 17;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">varchar </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">字符型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">varchar</span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型,同<span lang="EN-US">char</span>类型一样,用来存储非统一编码型字符数据。与<span lang="EN-US">char </span>型不一样,此数据类型为变长。当定义一列为该数据类型时,你要指定该列的最大长度。 它与<span lang="EN-US">char</span>数据类型最大的区别是,存储的长度不是列长,而是数据的长度<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 18;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">text </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">字符型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">text </span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型用来存储大量的非统一编码型字符数据。这种数据类型最多可以有<span lang="EN-US">2<sup>31</sup>-1</span>或<span lang="EN-US">20</span>亿个字符<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 19;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">nchar </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">统一编码字符型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">nchar </span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型用来存储定长统一编码字符型数据。统一编码用双字节结构来存储每个字符,而不是用单字节<span lang="EN-US">(</span>普通文本中的情况<span lang="EN-US">)</span>。它允许大量的扩展字符。此数据类型能存储<span lang="EN-US">4000</span>种字符,使用的字节空间上增加了一倍<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 20;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">nvarchar </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">统一编码字符型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">nvarchar </span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型用作变长的统一编码字符型数据。此数据类型能存储<span lang="EN-US">4000</span>种字符,使用的字节空间增加了一倍<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 21;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">ntext </span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">统一编码字符型<span lang="EN-US"> </span></span></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-pagination: widow-orphan;" align="center"><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">ntext </span><span style="font-size: 9pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">数据类型用来存储大量的统一编码字符型数据。这种数据类型能存储<span lang="EN-US">2<sup>30</sup> -1</span>或将近<span lang="EN-US">10</span>亿个字符,且使用的字节空间增加了一倍<span lang="EN-US"> </span></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 22;">
<td style="padding: 0.75pt;">
<p class="MsoNormal" style="text-align: center; mso-
发表评论
-
BoneCP参数配置
2011-03-25 11:55 1944一、BoneCP配置文件格式(bonecp-config.xm ... -
CSS学习整理
2011-03-10 14:29 959一、使用STYLE属性: 将STYLE属性直接加在个别的元件标 ... -
开发中常用的mime类型
2011-03-10 14:11 1242Java代码 3gp video/3 ... -
Mysql常用命令
2011-03-02 15:27 729show databases; 显示数据库 crea ... -
Mysql备份数据库语句
2011-02-24 20:29 2358mysqldump -hhostname -uusername ... -
Mysql数据库参数优化
2011-02-24 12:39 12991.获取当前配置参数运行下列命令可以获得当前服务器使用的配置参 ... -
Struts2学习笔记
2011-02-23 16:30 979一、Struts2框架搜索Struts2常量的顺序: ...
相关推荐
迁移工具版本为hgdb-migration-v4.1.4,瀚高数据库迁移工具支持源端为Oracle、MySQL、SQL Server、DB2、KingbaseV7、KingbaseV8、DM7、DM8、HIGHGO数据库,目标端为HIGHGO、PostgreSQL数据库的自动化迁移,为了能更...
在本篇中,我们将详细探讨Oracle、Sybase、MySQL和DB2这四种常见数据库的监控重点和常用SQL监控脚本。 首先,Oracle数据库的监控主要包括以下几个方面: 1. **数据库配置**:包括数据库名、版本信息、位数和归档...
根据提供的文件内容,本文将详细解析“IBM DB2,Oracle,MS-SQL Server,MySQL数据库数据迁移方法图解”的核心知识点。重点在于理解不同数据库之间的数据迁移过程,并具体阐述每一步的操作方法及其背后的技术原理。 ##...
SQL Monitor for Oracle,MySQL and DB2 是款免费的数据库跟踪工具,专门用来分析CPU使用率高的问题。 软件功能: 1. 监控SQL Server的进程和Job,查看当前执行的SQL/命令,并终止之。 2. 对象浏览器,跟 SQL Server...
不同的数据库系统如Oracle、DB2、MySQL、SQL Server等,虽然有着各自的特点和专长,但在数据类型的定义上有着相似之处,同时也存在一些差异。下面,我们将深入探讨这些数据库系统中常见的数据类型及其特性。 ### ...
不同的数据库管理系统(DBMS)有不同的分页查询语句,下面对 Oracle、DB2、SQL Server、MySQL、Access 等数据库的分页查询语句进行了整理。 SQL Server 分页查询 SQL Server 中有两种分页查询方法: 1. 第一种...
一、支持的数据库 :SQL Server2005 +、MySQL、Oracle 二、支持的文档类型 :HTML、CHM、DOCX(自动生成目录) 三、不用安装Office 即可生成 DOCX格式的WORD 文档 四、基于.Net Framework 3.5框架 ,需要电脑上...
hibernate@注解方式配置实体类时,利用javadoc接口生成数据库表及字段的注释说明,支持oracle、sqlserver、db2、mysql数据库。因用到java\lib\tools.jar,需要将该jar放入工程lib下(或者tomcat\lib下、或加入...
其他常见的数据库系统如MySQL适合轻量级需求,Oracle和DB2则常用于大型企业,Access是文件型数据库,SQLite是轻量级数据库,而Sybase则适用于特定场景。 在数据库设计中,数据通常根据类型分别存储在不同的数据库中...
本主题将详细介绍如何为Oracle、MySQL、DB2和SQL Server等常见数据库创建Quartz所需的表结构。 一、Oracle数据库创建Quartz表 在Oracle环境下,你需要执行一系列的SQL语句来创建Quartz的表。这些表包括QRTZ_...
26. 比较SQL Server与Oracle、DB2 27. 多个数据库时,如何设置默认数据库 28. 各种数据类型的比较 29. 漫谈oracle中的空值 30. 没有备份、只有归档日志,如何恢复数据文件 31. 哪些初始化参数最影响Oracle系统...
SQL(Structured Query Language)是一种用于管理和操作关系数据库的语言,它被广泛应用于各种数据库管理系统(DBMS),如SQL Server、MySQL、Oracle、DB2等。在本文中,我们将深入探讨SQL的基础知识、主要操作以及...
SqlDbx支持多种数据库引擎,包括但不限于MySQL、PostgreSQL、Oracle、Microsoft SQL Server、SQLite、DB2等,这使得它成为多平台数据库管理的理想选择。用户可以通过这个工具轻松地连接到不同的数据库系统,进行查询...
例如,如果源数据中有日期时间信息,但在目标DB2数据库中只需要日期部分,可以通过Oracle的`TO_CHAR()`函数将日期时间格式化为仅包含日期的字符串,再加载到DB2的`TIMESTAMP`字段中。 ### 结论 DB2和Oracle在...
* SQLServer:MicroSoft 公司收费的中型的数据库。C#、.net 等语言常使用。 * SyBase:已经淡出历史舞台。提供了一个非常专业数据建模的工具 PowerDesigner。 * SQLite:嵌入式的小型数据库,应用在手机端。 1.3 ...
主流的关系型数据库包括Oracle、IBM的DB2、微软的SQL Server和Oracle的MySQL。 1.1.4. 表的概念 表是关系数据库的基本单元,由行(记录)和列(字段)组成,它们之间可以通过键建立关联,形成复杂的数据结构。 ...
通过以上介绍可以看出,无论是Oracle、MySQL还是DB2,它们都围绕着关系型数据库的核心原理和技术展开,但在具体实现细节和技术特性上有所差异。对于DBA(数据库管理员)而言,掌握这些基本原理和技术要点对于有效...
SQL Server支持多种数据库系统,如Db2、Oracle、Sybase、MySQL和PostgreSQL,但重点在于理解和掌握SQL语言的语法和操作。SQL(Structured Query Language)是用于管理和处理数据库的标准语言,包括四大基本操作:增...
sqlserver 微软 sqlserver2003 开源的 mysql sun --- 甲骨文 3.RDBMS 3 关系型数据库 管理系统 基于二维表的数据库 由行 和 列组成的 表格 叫二维表 表头 table header 行 row 列 column 字段名 field...