我用ODBC(CDatabase、CRecordset)操作DBF文件时,只能在逻辑上删除表中记录:
CDatabase *pDB;
pDB->ExecuteSQL("delete from *.dbf where ....);
或:
CRecordset rs(pDB);
rs.Delete();请问如何才能物理删除之?在VFP中通过窗口命令Pack可以将其删除,但是在使用CDatabase/CRecordset时如何灵活应用它?
我尝试pDB->ExecuteSQL("pack table");系统则提示:必须以独占方式打开。
在VFP中通过窗口命令set exclusive on或者use mytable excl能使现独占方式,但是通过ODBC如何使用它?