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

AVEVA™ InTouch HMI

SQLSetParamDate() 函数

  • Last UpdatedSep 24, 2024
  • 1 minute read

SQLSetParamDate() 函数将某个参数的值设置为指定的日期。

类别

SQL

语法

SQLSetParamDate(StatementID, ParameterNumber, "Value");

参数

StatementID

确定查询中的 SQL 语句的整数值。

ParameterNumber

整数值,用于确定 StatementID 参数所确定的 SQL 语句中的参数。

指定给参数的日期(用英文双引号括起来的文字形式),或是值为日期的标记的名称。指定给日期的时间是0:00:00。

示例

本例将第三个语句的第二个参数设置为与 NewDate 标记关联的日期。

SQLSetParamDate(3, 2, NewDate);

另请参阅

SQLPrepareStatement()

In This Topic
Related Links