⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 append c interbase概述.html

📁 delphi的学习资料
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</FONT><P>                           <FONT FACE="宋体" LANG="ZH-CN">定。</P>
<P> </FONT>                <FONT FACE="宋体" LANG="ZH-CN">行大小</FONT> <FONT FACE="宋体" LANG="ZH-CN">:</FONT>64K</P>
<P>  <FONT FACE="宋体" LANG="ZH-CN">  每个数据库索引个数</FONT> <FONT FACE="宋体" LANG="ZH-CN">:无严格限制</P>
</FONT><P>  <FONT FACE="宋体" LANG="ZH-CN">   每个表格的索引数</FONT> <FONT FACE="宋体" LANG="ZH-CN">:无严格限制</P>
<P> </FONT>    <FONT FACE="宋体" LANG="ZH-CN">每个触发器所容事件</FONT> <FONT FACE="宋体" LANG="ZH-CN">:无限制</P>
</FONT><P>  <FONT FACE="宋体" LANG="ZH-CN">  每存贮过程所容事件</FONT> <FONT FACE="宋体" LANG="ZH-CN">:无限制</P>
</FONT><P>  <FONT FACE="宋体" LANG="ZH-CN">      </FONT>BLOB<FONT FACE="宋体" LANG="ZH-CN">大小</FONT> <FONT FACE="宋体" LANG="ZH-CN">:</FONT>32GB(BLOB<FONT FACE="宋体" LANG="ZH-CN">段大小</FONT>64K)</P>
<P>  <FONT FACE="宋体" LANG="ZH-CN">       数组大小</FONT> <FONT FACE="宋体" LANG="ZH-CN">:</FONT>64K</P>
<P>  <FONT FACE="宋体" LANG="ZH-CN">       可联表格</FONT> <FONT FACE="宋体" LANG="ZH-CN">:无限制</P>
</FONT><P>  <FONT FACE="宋体" LANG="ZH-CN">     查询嵌套层数</FONT> <FONT FACE="宋体" LANG="ZH-CN">:无限制</P>
</FONT><P>  <FONT FACE="宋体" LANG="ZH-CN">  每一综合检索的列数</FONT> <FONT FACE="宋体" LANG="ZH-CN">:</FONT>16</P>
<P>  <FONT FACE="宋体" LANG="ZH-CN">每一存贮过程的嵌套层数</FONT> <FONT FACE="宋体" LANG="ZH-CN">:</FONT>Windows 3.X<FONT FACE="宋体" LANG="ZH-CN">系统为</FONT>75<FONT FACE="宋体" LANG="ZH-CN">、</FONT>Windows 95<FONT FACE="宋体" LANG="ZH-CN">及</FONT>WindowsNT<FONT FACE="宋体" LANG="ZH-CN">为</P>
</FONT><P>                           750<FONT FACE="宋体" LANG="ZH-CN">、其它系统</FONT> 1000</P>
<P>    <FONT FACE="宋体" LANG="ZH-CN">每一触发器的嵌套层数</FONT> <FONT FACE="宋体" LANG="ZH-CN">:同上存贮过程的规定</P>
</FONT><P>  <FONT FACE="宋体" LANG="ZH-CN">     存贮过程长度</FONT> <FONT FACE="宋体" LANG="ZH-CN">:</FONT>48K</P>
<P>    <FONT FACE="宋体" LANG="ZH-CN">     排序从句键</FONT> <FONT FACE="宋体" LANG="ZH-CN">:</FONT>64K</P>
<P>              <FONT FACE="宋体" LANG="ZH-CN">触发器长度</FONT> <FONT FACE="宋体" LANG="ZH-CN">:</FONT>64K</P>
<P> </P>
<FONT FACE="宋体" LANG="ZH-CN"><P>五、语法规则</P>
<P> </P>
<P>  表附录</FONT>C.2<FONT FACE="宋体" LANG="ZH-CN">讲述了语句及简码中的语法约定,并提供了用法的简单例程。</P>
<P> </P>
</FONT><P>                    <FONT FACE="宋体" LANG="ZH-CN">表附录</FONT>C.2  InterBase<FONT FACE="宋体" LANG="ZH-CN">的语法约定</P>
</FONT><P>   <FONT FACE="宋体" LANG="ZH-CN">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</P>
<P>  约定           用途            实例</P>
</FONT><P> <FONT FACE="宋体" LANG="ZH-CN">─────────────────────────────────────</P>
<P>  大写</FONT>(UPPERCASE)<FONT FACE="宋体" LANG="ZH-CN">  应用时必须被正确输入的关    </FONT>SET TERM II;</P>
<P>                         <FONT FACE="宋体" LANG="ZH-CN">键字</P>
<P>  斜体</FONT>(italic)           <FONT FACE="宋体" LANG="ZH-CN">不能被分为更小单元的参数    </FONT>CREATE TABLE,name</P>
<P>                         <FONT FACE="宋体" LANG="ZH-CN">例如表格名称不能再细分     </FONT>(&lt;col&gt;[,&lt;col&gt;<FONT FACE="宋体" LANG="ZH-CN">…</FONT>];@</P>
<P>    &lt;<FONT FACE="宋体" LANG="ZH-CN">斜体</FONT>&gt;(&lt;italic&gt;)       <FONT FACE="宋体" LANG="ZH-CN">在尖括号中的参数可以被划    </FONT>CREATE TABLE name</P>
<P>                         <FONT FACE="宋体" LANG="ZH-CN">分为更小的句法单元,例如    </FONT>(&lt;col&gt;[,&lt;col&gt;<FONT FACE="宋体" LANG="ZH-CN">…</FONT>]</P>
<FONT FACE="宋体" LANG="ZH-CN"><P>           </FONT>   <FONT FACE="宋体" LANG="ZH-CN">列定义</FONT>(&lt;col&gt;)<FONT FACE="宋体" LANG="ZH-CN">可以被再分为  </FONT> <FONT FACE="宋体" LANG="ZH-CN"> </FONT> &lt;col&gt;=mane&lt;datatype&gt;</P>
<P>                         <FONT FACE="宋体" LANG="ZH-CN">名称、数据类型和强制定义 </FONT> <FONT FACE="宋体" LANG="ZH-CN"> </FONT>[CONSTRAINT name&lt;type&gt;]</P>
<FONT FACE="宋体" LANG="ZH-CN"><P>  方括号</FONT>[ ]            <FONT FACE="宋体" LANG="ZH-CN">方括中放可选项语句       </FONT>&lt;col&gt;,[&lt;col<FONT FACE="宋体" LANG="ZH-CN">…</FONT>]</P>
<P>    <FONT FACE="宋体" LANG="ZH-CN">省略号…     </FONT>  <FONT FACE="宋体" LANG="ZH-CN">省略号表示括号中的句子可    </FONT>(&lt;col&gt;,[&lt;col&gt;<FONT FACE="宋体" LANG="ZH-CN">…</FONT>];</P>
<FONT FACE="宋体" LANG="ZH-CN"><P>           </FONT>  <FONT FACE="宋体" LANG="ZH-CN">以重复需要的若干次</P>
<P>  分隔符</FONT>|<FONT FACE="宋体" LANG="ZH-CN">      </FONT>  <FONT FACE="宋体" LANG="ZH-CN">分隔符表示其分隔的两个句    </FONT>SET TRANSACTION</P>
<P>                        <FONT FACE="宋体" LANG="ZH-CN">子中的任何一个可被用,但    {</FONT>SNA PSHOT</P>
<P>                        <FONT FACE="宋体" LANG="ZH-CN">不会都用            </FONT>[TABLE STABILITY]|</P>
<P>                                                        READ COMMITTED}</P>
<P>    <FONT FACE="宋体" LANG="ZH-CN">花括号{</FONT> }          <FONT FACE="宋体" LANG="ZH-CN">在花括号中的分隔符隔开多</FONT>        SET TRANSACTION</P>
<P>                       <FONT FACE="宋体" LANG="ZH-CN">种选项,必须使用其中之一,</FONT>      {SNAP SHOT[TABEL </P>
<FONT FACE="宋体" LANG="ZH-CN"><P>  </FONT>                   <FONT FACE="宋体" LANG="ZH-CN">在实际应用此语句时,必须    </FONT>STABILITY] | READ</P>
<P>                       <FONT FACE="宋体" LANG="ZH-CN">有一个选项被包含        </FONT>COMMITTED</P>
<P>   <FONT FACE="宋体" LANG="ZH-CN">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</P>
<P> </P>
<P>六、数据库对象命名规则</P>
<P> </P>
<P>  在</FONT>InterBase<FONT FACE="宋体" LANG="ZH-CN">文件集中,</FONT>InterBase<FONT FACE="宋体" LANG="ZH-CN">数据库对象如表格</FONT>(tables)<FONT FACE="宋体" LANG="ZH-CN">、视图</FONT>(views)<FONT FACE="宋体" LANG="ZH-CN">及列</FONT>(columns)<FONT FACE="宋体" LANG="ZH-CN">的名称,显示为大写字符。因为这是数据库系统表格存贮信息的方式。</P>
<P>  当程序员或用户创建一个数据库对象或用名称来指定对象时,大小写并不是很重要,只须遵守以下的数据库对象命名规则即可:</P>
<P>  ①</FONT> <FONT FACE="宋体" LANG="ZH-CN">每一个名字的第一个元素一定要是字母,即以字母</FONT>(A-Z<FONT FACE="宋体" LANG="ZH-CN">或</FONT>a-z)<FONT FACE="宋体" LANG="ZH-CN">开头</P>
<P>  ②</FONT> <FONT FACE="宋体" LANG="ZH-CN">对象名最长限度为</FONT>31<FONT FACE="宋体" LANG="ZH-CN">个字符,其中包括美元符号</FONT>($)<FONT FACE="宋体" LANG="ZH-CN">、下划线</FONT>(_)<FONT FACE="宋体" LANG="ZH-CN">,数字</FONT>0-9<FONT FACE="宋体" LANG="ZH-CN">,字母</FONT>A-Z<FONT FACE="宋体" LANG="ZH-CN">和</FONT>a-z<FONT FACE="宋体" LANG="ZH-CN">。一些对象会约束名称,限制长度为</FONT>27<FONT FACE="宋体" LANG="ZH-CN">字节</P>
<P>  ③</FONT> <FONT FACE="宋体" LANG="ZH-CN">保证对象名的唯一性。在所有情况下,同类型</FONT>(<FONT FACE="宋体" LANG="ZH-CN">如表格、视窗</FONT>)<FONT FACE="宋体" LANG="ZH-CN">的对象,名称必须是唯一的。多数情况下,在数据库范围内的对象名称亦必须是唯一的</P>
<P> </P>
<P>七、文件命名规则</P>
<P> </P>
<P>  </FONT>InterBase<FONT FACE="宋体" LANG="ZH-CN">对于很多平台都是可用的。多数情况下,在多机种网络环境中的用户可以访问他们的</FONT>InterBase<FONT FACE="宋体" LANG="ZH-CN">数据库文件,即使客户端和服务器端的平台是不相同的,只需知道目标平台上的文件命名规则即可。</P>
<P>  因为文件命名规则在不同的平台上区别很大,而且由于核心的</FONT>InterBase<FONT FACE="宋体" LANG="ZH-CN">文件集对这些平台都是相同的,因此所有的文件名在文本状态及例子中都是用</FONT>DOS<FONT FACE="宋体" LANG="ZH-CN">的</FONT> "8.3" <FONT FACE="宋体" LANG="ZH-CN">规则的,即最长</FONT>8<FONT FACE="宋体" LANG="ZH-CN">个字符的文件名和最长</FONT> 3<FONT FACE="宋体" LANG="ZH-CN">个字符的扩展名。例如,所有服务器上的示范数据库都是</FONT>employee.gdb.</P>
<FONT FACE="宋体" LANG="ZH-CN"><P>  您可能注意到在例子中都用了扩展名:“</FONT>.gdb<FONT FACE="宋体" LANG="ZH-CN">”,它是缺省的</FONT> InterBase <FONT FACE="宋体" LANG="ZH-CN">数据库扩展名。通常情况下,</FONT>InterBase<FONT FACE="宋体" LANG="ZH-CN">完全支持各种平台的文件命名规则,包括节点和路径名的用法。</FONT>InterBase<FONT FACE="宋体" LANG="ZH-CN">能识别用命令和语句表明的两种类型的文件名称说明。一种叫做主文件说明,另一种叫做次级文件说明。</FONT> <FONT FACE="宋体" LANG="ZH-CN">一些命令和语句在用次级文件说明时对节点名称要进行规范限制。</P>
<P>  在语法上,文件说明表示如下:</P>
<P>  “</FONT>&lt;file spec&gt;<FONT FACE="宋体" LANG="ZH-CN">”</P>
<P> </P>
<P>八、文件说明</P>
<P> </P>
</FONT><P>1.<FONT FACE="宋体" LANG="ZH-CN">主文件说明 </P>
<P> </P>
</FONT><P>    <FONT FACE="宋体" LANG="ZH-CN">在进行主文件说明时,</FONT>InterBase<FONT FACE="宋体" LANG="ZH-CN">语法总支持完整文件说明,包括可选的节点名和完全的路径。例如,</FONT>CREATE DATABASE<FONT FACE="宋体" LANG="ZH-CN">用语法表示如下:</P>
<P> </P>
<P>   </FONT>CREATE {DATABASE |SCHEMA]"&lt;file spec&gt;"</P>
<P>      [USER "username"[PASSWORD"password"]</P>
<P>      [PAGE-81ZE [=] int]</P>
<P>      [LENGTH [=] int [PAGE[S]]</P>
<P>      [DEFAULT CHARACTER SET charset]</P>
<P>      <FONT FACE="宋体" LANG="ZH-CN">…</P>
<P> </P>
<P>  在以上句子中,</FONT>&lt;filespec&gt;<FONT FACE="宋体" LANG="ZH-CN">紧跟在</FONT>CREATE DATABASE<FONT FACE="宋体" LANG="ZH-CN">后面,它支持节点名和路径说明,包括一个指定平台的驱动器或指定列。</P>
<P> </P>
</FONT><P>2<FONT FACE="宋体" LANG="ZH-CN">、次级文件说明</P>
<P> </P>
<P>  对于支持多种文件说明的</FONT>InterBase<FONT FACE="宋体" LANG="ZH-CN">语法,例如</FONT>CREATA DATABASE<FONT FACE="宋体" LANG="ZH-CN">,所有在第一个文件说明后的均为次级文件说明。次级文件说明通常不包含节点名称,</FONT> <FONT FACE="宋体" LANG="ZH-CN">但可能说明一个完整的路径,例如,</FONT>CREATE DATABASE<FONT FACE="宋体" LANG="ZH-CN">的句法说明如下:</P>
<P> </P>
<P>  </FONT>  CREATE {DATABASE |SCHEMA} : "filespec"</P>
<P>      [USER "username" [PASSWORD "password"]]</P>
<P>      [PAGA SIZE [=] int [PAGE[S]]]</P>
<P>      [DEFAULT CHARACTER SET charset]</P>
<P>      [&lt;secondary-file]</P>
<P>      &lt;secondary-file&gt; = FILE "filespec" [&lt;fileinto&gt;][&lt;secondaryfile]</P>
<P>      &lt;fileinfo&gt;=LENGTH[=]int[PAGEE]|STARTING[AT[PAGE]]int[&lt;fileinfo&gt;]</P>
<P> </P>
<FONT FACE="宋体" LANG="ZH-CN"><P>  在次级文件说明中,</FONT>&lt;filespec&gt;<FONT FACE="宋体" LANG="ZH-CN">不支持节点名称的说明。</P>
<P> </P></FONT></BODY>
</HTML>

嫰懍

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -