Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回消息的 QAnywhere 地址。
以 VARCHAR(128) 表示 QAnywhere 消息地址。QAnywhere 消息地址的格式为 id\queue-name。
可以在收到消息后以及发生回退或提交之前读取此标头;之后则无法读取。
在下面的示例中,收到一条消息,并将其地址输出到数据库服务器消息窗口:
begin declare @msgid varchar(128); declare @addr varchar(128); set @msgid = ml_qa_getmessage( 'myaddress' ); set @addr = ml_qa_getaddress( @msgid ); message 'message to address ' || @addr || ' received'; commit; end