怎样在程序中实现清空SQL中某个表格
如题。
[解决办法]
delete 不返回结果集,所以,要用Query的ExecSQL方法.如:
ADOQ_delet->Close(); ADOQ_delet->SQL->Clear(); ADOQ_delet->SQL->Add("delete * from aa"); ADOQ_delet->ExecSQL();
[解决办法]
ADOQ_delet->Close();
ADOQ_delet->SQL->Clear();
ADOQ_delet->SQL->Add("delete delete from aa");
ADOQ_delet->ExecSQL();