Sqlexec

此帮助页面适用于 Desktop Studio。 此信息也适用于 Studio。

Icon of SQLExec: grid of squares with a gear

将 SQL(结构化查询语言)语句提交到数据库服务器,用于正在更新或插入记录。 有关数据库服务器的更多详情,请参阅 Sqlselect 操作。

支持的脚本类型

The icon for a Generic script type - a rectangle with < and > symbols inside it.

电子邮件脚本类型的图标——菱形中的一个大 @ 符号。

聊天脚本类型的图标——一个聊天气泡,带有一个包含省略号 (...) 的菱形。

电话脚本类型的图标——一种老式电话听筒,带有曲线表示从它发出的声音。

语音邮件脚本类型的图标——一个看起来像盒式磁带的符号——两个圆圈位于一条水平线上。

工作项脚本类型的图标——一张纸,其中一个角向下折叠并且纸上有一个项目符号列表。

" \"SMS"

Digital 脚本类型的图标 - 一台计算机显示屏旁边放着一部智能手机。

通用

Email 聊天 电话 語音邮件 工作项目 短信 Digital

输入属性

这些属性定义操作在执行时使用的数据。

属性

说明

Caption

输入在脚本中唯一标识此操作的短语。 标题显示在脚本画布上的操作图标下方。 默认值为操作名称。

SQLStatement

将提交到数据库服务器的 SQL 语句。

此语句不应返回记录。

FetchIdentityVar

从插入项接收身份值的变量的名称。

只有当您正在插入的表包含身份列时,才可以使用此属性。

TimeoutSec

该操作在超时之前等待执行的秒数。该值必须介于 0 和 60 之间。

结果分支条件

结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。

条件

说明

默认

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.
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.
OnTimeout Path taken if there is no response for the number of seconds specified.