Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 (中文) » SQL Anywhere 服务器 - 数据库管理 » 数据库配置 » 连接属性、数据库属性和数据库服务器属性

 

访问数据库属性值

数据库属性可用于数据库服务器上的每个数据库。可以使用 DB_PROPERTY 系统函数检索单个属性的值,也可使用 sa_db_properties 系统过程检索所有数据库属性的值。

前提条件

执行此任务没有前提条件。

上下文和注释

属性名称不区分大小写。

 任务
  • 使用以下方法之一访问数据库属性值:

    选项 操作
    检索数据库属性的值 使用 DB_PROPERTY 系统函数。
    检索所有数据库属性的值 使用 sa_db_properties 系统过程。

结果

将返回数据库属性值。

以下语句返回当前数据库的页面大小:

SELECT DB_PROPERTY ( 'PageSize' );

使用 sa_db_properties 系统过程检索所有数据库属性的值:

CALL sa_db_properties;

 另请参见