-
-
[旧帖]
[求助]执行delete语句失败原因???
0.00雪花
-
发表于:
2011-6-2 22:23
5016
-
[旧帖] [求助]执行delete语句失败原因???
0.00雪花
invoke lstrlen,offset sqldelete
invoke SQLExecDirect,@hstmt,offset sqldelete,eax
失败了,用诊断函数,返回一个数是07002
本来这些语句是执行select,insert等语句的,都没问题,一旦把指针指向delete语句就不行了。
这个函数本来不用自己调用什么绑定函数的吧,可是查看msdn里的07002错误,发现:
COUNT field incorrect:
The number of parameters specified in SQLBindParameter was less than the number of parameters in the SQL statement contained in *StatementText.
SQLBindParameter was called with ParameterValuePtr set to a null pointer, StrLen_or_IndPtr not set to SQL_NULL_DATA or SQL_DATA_AT_EXEC, and InputOutputType not set to SQL_PARAM_OUTPUT, so that the number of parameters specified in SQLBindParameter was greater than the number of parameters in the SQL statement contained in *StatementText.
怎么回事???
[课程]Android-CTF解题方法汇总!