Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

SQLInsert() 函数

  • Last UpdatedSep 24, 2024
  • 1 minute read

SQLInsert() 函使使用所提供的<1>“</1>绑定列表<2>”</2>中标记的值<3>,</3>向引用的表中插入一条新记录<4>。</4> BindList 参数定义要使用哪些 InTouch 标记,以及同这些标记关联的是哪些数据库列。

使用 SQLInsert() 函数可以完成预备、插入和结束语句的操作。

类别

SQL

语法

[ResultCode=]SQLInsert(ConnectionID, TableName, BindList);

参数

ConnectionID

内存整型标记的名称,用于存放 SQLConnect() 函数指定给每个数据库连接的编号 (ID)。

TableName

要访问的数据库表的名称。

BindList

定义要使用哪些 InTouch 标记,以及同这些标记关联的是哪些数据库列。

示例

下面的语句使用 List1 中指定的标记值向 ORG 表中插入一条新记录:

ResultCode=SQLInsert(ConnectionID,"ORG","List1");

In This Topic