SQLEXEC

此説明頁面適用於 Studio。 此資訊亦適用於 Desktop Studio。

Icon of SQLExec: gray database with code brackets

向資料庫伺服器提交 SQL(結構化查詢語言)陳述式以更新或插入記錄。 如需有關資料庫伺服器的更多詳細資訊,請參閱Sqlselect 動作。

支援的程式碼類型

一個正方形,其上有一條通往其他三個正方形的分支線。

Icon of gray-green envelope

深綠色語音氣泡圖示

Icon of purple telephone handset

鏽色留言符號圖示,由兩個以線條相連的圓形組成

Icon of pink document with lines of text

Icon of green mobile phone with a speech bubble on its screen

通用

電郵 聊天 電話 語音郵件 工作項目 SMS

輸入屬性

這些屬性定義了動作執行時使用的資料。

屬性

描述

新增標題

Enter a short phrase that uniquely identifies this action in the script. The caption appears on the script canvas under the action icon.

SQL 語句

要提交給資料庫伺服器的 SQL 陳述式。

此陳述式不應返回記錄。

擷取身份變數

從插入接收身分識別值的變數的名稱。

僅當您插入的表包含身分識別欄時才使用此屬性。

逾時秒數

動作在逾時前等待執行的秒數。此數值必須介乎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.