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

SQL Anywhere 11.0.1 (中文) » QAnywhere » QAnywhere 参考 » QAnywhere SQL API 参考 » 消息属性、标头和内容 » 消息内容

 

ml_qa_gettextcontent

返回文本消息的消息内容。

参数
说明 注释
1 消息 ID VARCHAR(128)。可从 ml_qa_createmessage 或 ml_qa_getmessage 获取消息 ID。
返回值

LONG VARCHAR 形式的文本内容。

如果消息有二进制内容,而非文本内容,则此存储过程返回空值。

注释

接收消息后就可以读取此内容,一直到执行回退或提交;执行回退或提交后就不能再读取此内容。

另请参见
示例

在下面的示例中,将消息内容输出到数据库服务器消息窗口:

begin
    declare @msgid varchar(128);
    declare @content long binary;
    set @msgid = ml_qa_getmessage( 'myaddress' );
    set @content = ml_qa_gettextcontent( @msgid );
    message 'message content: ' || @content ;
    commit;
end