简体   繁体   English

如何使用Python更改.dbf文件及其关联的.mdx文件?

[英]How to change a .dbf file AND its associated .mdx file with Python?

I want to delete some rows of a .dbf file. 我想删除.dbf文件的某些行。 It's clear for me how to do this with Python for example with the dbf-module. 对我来说,很明显如何使用dbf-module这样的Python。 However, the .dbf file has an index .mdx file associated with it. 但是,.dbf文件具有与之关联的索引.mdx文件。 If I change the .dbf file, how can I change its associated .mdx file accordingly? 如果更改.dbf文件,如何相应地更改其关联的.mdx文件? Is this functionality supported by the .dbf module? .dbf模块支持此功能吗? If not, how can I do this? 如果没有,我该怎么办?

Thanks in advance. 提前致谢。

The dbf * library in question does not support index files of any type. 有问题的dbf *库不支持任何类型的索引文件。 If you have access to the original program you could use it to rebuild the indices after you modify the .dbf file itself. 如果您有权访问原始程序,则可以在修改.dbf文件本身之后使用它来重建索引。


*Disclosure: I am the author of the dbf library. *披露:我是dbf库的作者。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM