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

AVEVA™ InTouch HMI

SQLSetParamChar() 函数

  • Last UpdatedSep 24, 2024
  • 1 minute read

在脚本中,SQLSetParmChar() 函数可以用于将指定参数的值设置为指定的字符串。此函数可以在执行之前调用多次,导致参数值设置为发送的所有值的串联结果。长度 0(零)会被忽略。

类别

SQL

语法

SQLSetParamChar(StatementID, ParameterNumber, ParameterValue, MaxLength);

参数

StatementID

使用 SQLPrepareStatement() 函数时 SQL 返回的整数值。

ParameterNumber

语句中的参数编号。

ParameterValue

要设置为参数值的值。

最大长度

与此参数关联的列的最大宽度。此设置确定参数是可变字符类型还是长可变字符类型。如果 MaxLength 小于或等于数据库所允许的最大字符串长度,则此参数是可变字符类型。如果大于,则是长可变字符类型。

另请参阅

SQLPrepareStatement()

In This Topic
Related Links