SQLSetParamTime() 函数
- Last UpdatedSep 24, 2024
- 1 minute read
SQLSetParamTime() 函数将指定的时间参数值设置为指定的字符串。
类别
SQL
语法
SQLSetParamTime(StatementID, ParameterNumber, Value)
参数
StatementID
确定查询中的 SQL 语句的整数值。
ParameterNumber
StatementID 参数所确定的 SQL 语句中的实际参数编号。
值
要设置的实际值。将 ParameterNumber 参数所指定的参数设置为时间值。运行该函数的计算机的当前日期同指定的时间包含在一起。
示例
本例将第四条 SQL 语句的第二个参数设置为 10:00 AM。
ResultCode=SQLSetParamTime(1, 3, "10:00:00 AM");
另请参阅
SQLPrepareStatement()