Sqlcursor

向資料庫伺服器提交 SQL(結構化查詢語言)陳述式並返回多列結果。

Dependencies

  • 當預期有多列時,使用 Sqlcursor 的目的與 Sqlselect 相同。
  • 此動作不會一次檢索所有列。相反,資料集被開啟並保持開啟狀態,以供重複存取。
  • Sqlcursor 一樣,每一欄都儲存在一個與該欄同名的變數中。最初,將擷取第一條記錄。要擷取連續記錄,請重複執行 Sqlnext,直到 Sqlnext 觸發其End of Dataset分支條件。
  • 如果指令碼無需繼續擷取所有記錄,Sqlclose 動作會放在End of Dataset分支條件之後。這將手動關閉資料集。這確保了資料庫記憶體被釋放,並且潛在的記錄鎖不會保持活躍狀態。

Supported Script Types

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

The icon for the Email script type - a large @ symbol in a diamond.

The icon for the Chat script type - a chat bubble with an ellipsis inside (...), in a diamond shape.

The icon for the Phone script type - an old-style phone handset with curved lines indicating sound coming out of it.

The icon for the Voicemail script type - a symbol that looks like a cassette tape - two circles sitting on a horizontal line.

The icon for the Work Item script type-a piece of paper with one corner folded down and a bullet list on it.

The icon for the SMS script type - a smart phone with a chat bubble coming out of it.

The icon for the Digital script type - a computer monitor with a smartphone next to it.

一般

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

Input Properties

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

屬性

描述

標題

輸入在指令碼中唯一標識此操作的短語。標題出現在指令碼畫布上的動作圖示下。The default is the action name.

SQLQuery

要提交給資料庫伺服器的 SQL 陳述式。此陳述式預期應返回記錄。

GlobalVariables

未使用。
Publish

根據檢索到的姓氏發布變數和值。例如,如果檢索到 3 個姓名,則只會發布姓氏中的資料。

TimeoutSec

動作超時前等待執行的秒數。值必須在060之間。

Result Branch Conditions

結果分支條件允許您在指令碼中建立分支,以處理執行動作時的不同結果。

條件

描述

Default

指令碼未能滿足需要它採用其中一個分支的條件時採用的路徑。如果沒有定義動作的其他分支,也會採用該路徑。
NoRecords 沒有指定屬性的值時採用的路徑。
OnError 動作未能正確執行時採用的路徑。例如,當出現連接不良、語法錯誤等意外問題時。_ERR變數(帶有一個下畫線字元)應填入針對問題的簡要說明。