不行,我已经尝试了,最让我恼火的是这句话
For character and binary C data, the BufferLength argument specifies the length of
the ParameterValuePtr buffer if it is a single element; or, if the application calls
SQLSetStmtAttr() with the SQL_ATTR_PARAMSET_SIZE attribute to specify
multiple values for each parameter, 《〈BufferLength is the length of each element in the
ParameterValuePtr array, 〉》 including the null-terminator. If the application specifies
multiple values, BufferLength is used to determine the location of values in the
ParameterValuePtr array. For all other types of C data, the BufferLength argument is
ignored.
注意我用书名号括起来那句,他说BufferLength 这个参数是值数组中每一个要插入元素的长度,这BufferLength 就一个参数怎么可能表示每一个元素长度???
除非所有元素长度一样? 就跟他tbload.c的例子一样