用 SQL LONG VARCHAR 数据类型设置指定消息属性。
项 | 说明 | 注释 |
---|---|---|
1 | 消息 ID | VARCHAR(128)。可从 ml_qa_createmessage 或 ml_qa_getmessage 获取消息 ID。 |
2 | 属性名称 | VARCHAR(128) |
3 | 属性值 | LONG VARCHAR |
消息发送后就不能再更改此属性。
在以下示例中,创建一条消息,设置字符串型属性 mystringproperty1 和 mystringproperty2,然后将消息发送到地址 clientid\queuename:
begin declare @msgid varchar(128); set @msgid = ml_qa_createmessage(); call ml_qa_setstringproperty( @msgid, 'mystringproperty1', 'c:\\temp' ); call ml_qa_setstringproperty( @msgid, 'mystringproperty2', 'first line\nsecond line' ); call ml_qa_putmessage( @msgid, 'clientid\queuename' ); commit; end |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |