Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回消息的优先级级别。
INTEGER 形式的优先级级别。
QAnywhere API 定义十种级别的优先级值,0 代表最低优先级,9 代表最高优先级。客户端应将优先级 0-4 视为普通优先级等级,将优先级 5-9 视为加速优先级等级。
可以在收到消息后以及发生回退或提交之前读取此标头;之后则无法读取。
在下面的示例中,收到一条消息,并将消息优先级输出到数据库服务器消息窗口:
begin declare @msgid varchar(128); declare @priority integer; set @msgid = ml_qa_getmessage( 'myaddress' ); set @priority = ml_qa_getpriority( @msgid ); message 'a message with priority ' || @priority || ' has been received'; commit; end