SQLQUERY
此帮助页面适用于 Studio。 此信息也适用于 Desktop Studio。
|
|
针对数据库连接器来源运行 SQL 语句,并返回一个动态数据对象。 |
依赖关系
支持的脚本类型
|
|
|
|
|
|
|
|
|
通用 |
聊天 | 电话 | 語音邮件 | 工作项目 | 短信 |
属性
|
属性 |
说明 |
|---|---|
|
添加说明文字 |
输入在脚本中唯一标识此操作的短语。 标题显示在脚本画布上的操作图标下方。 |
|
组名 |
NiCE CXone 管理员所配置的数据库提供程序的名称。 该属性区分大小写。 输入数据库提供程序名称,而不是服务名称。 服务名称将在您设置数据库提供程序时使用。 |
|
SQL 语句 |
要提交到数据库服务器的 SQL 语句。 预计此语句应当会返回记录。 |
|
开始录制 |
来自查询结果集的您希望以其为开始的记录。 |
|
最大记录数 |
要检索的记录的最大数量。 默认值为 100。 |
| 超时 | 查询超时之前的秒数。 默认值为 10。 支持的最大秒数为 30(尽管实际上可以在字段中输入更大的数字)。 |
输出属性
此操作将生成的数据集存储在动态数据对象中。 根据查询和返回的数据量,每个数据对象都将是唯一的。
|
属性 |
说明 |
|---|---|
| 结果 (out) | 这是您希望将数据存储在其中的动态数据对象的名称。 |
结果分支条件
结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。
|
条件 |
说明 |
|---|---|
| 默认 |
Path taken unless the script meets a condition that requires it to take one of the other branches. It is also taken if the action's other branches are not defined. |
| OnNoRecords |
指定的属性没有值时所采用的路径。 这种情况会在数据未从数据库返回时发生。 |
| OnError | Path taken when the action fails to execute properly. For example, when there is an unexpected problem such as poor connectivity, syntax errors, and so on. The _ERR variable, with a single underscore character, should be populated with a condensed explanation of the problem. 如果 SQL 查询无效,则会发生这种情况。 |
| OnTimeout | Path taken if there is no response for the number of seconds specified. |