每次只能删除一条记录???
DBPrepareSQL (g_DBC_Handle,"DELETE FROM table WHERE Module_Name = ? AND Serial_Number = ? AND Test_Type = ?");DBCreateParamChar (g_Statement_Handle, "Module_Name", ARAM_INPUT, Value_Module_Name, 20);
DBCreateParamChar (g_Statement_Handle, "Serial_Number", ARAM_INPUT, Value_Serial_Number, 40);
DBCreateParamChar (g_Statement_Handle, "Test_Type",DB_PARAM_INPUT, Value_Test_Type, 20);
DBExecutePreparedSQL (g_DBC_Handle);
DBClosePreparedSQL (g_DBC_Handle);
每次点删除按钮的时候只能删除一条记录,退出界面之后,再重新进入面又可删除一条,请问下,这个是什么原因啊???? 当你以为问题可能出在这几行时,问题恰恰可能出现在其它地方!就这几句是无法看出明显的问题的! 哦,看来我还得多调试几次啊! g_Statement_Handle = DBActivateSQL (g_DBC_Handle, "SELECT * FROM DataTable);
resCode = DBBindColChar ();
while(DBFetchNext (g_Statement_Handle) == DB_SUCCESS)
{
}
resCode = DBDeleteRecord (g_Statement_Handle);
我这样用了之后,就没有出现只能删除一行的现象.
页:
[1]