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

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - SQL 参考 » 系统对象 » 系统过程 » 按字母顺排序的系统过程列表

 

sa_get_server_messages 系统过程 [不建议使用]

用于以结果集的形式从数据库服务器消息窗口返回常量。

不建议使用此系统过程。可改用 sa_server_messages。请参见sa_server_messages 系统过程

语法
sa_get_server_messages( first_line )
参数
  • first_line   使用此 INTEGER 参数指定从其开始显示服务器消息的行号。

结果集
列名 数据类型 说明
line_num INTEGER 服务器消息的行号。
message_text VARCHAR(255) 服务器消息文本。
message_time TIMESTAMP 消息的时间。
注释

此过程采用一个指定要显示的行的起始行号的 INTEGER 参数,并为该行及其后面的所有行返回一行。如果起始行是负数,则结果集从第一个可用行开始。结果集中包含行号、消息文本和消息时间。

权限

None

副作用

None

示例

以下示例使用 sa_get_server_messages 系统过程返回一个结果集,其中包含数据库服务器消息窗口中从第 16 行开始的内容。

CALL sa_get_server_messages( 16 );
line_num message_text ...
16 正在 Windows 2000 Build 2195 上运行... ...
17 2132K 内存已用于高速缓存 ...
... ... ...