在矛盾数据库中添加新字段

2024-03-29 08:02:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在通过pypxlib包读取.db paradox数据库文件。使用insert函数我可以添加一个新行。但如何添加新字段?你知道吗

from pypxlib import Table
data = Table('test.db')
data.fields
>>OrderedDict([('Index', <pypxlib.DoubleField at 0x18a54cc5d68>),
         ('X', <pypxlib.DoubleField at 0x18a54cc5c88>),
         ('Y', <pypxlib.DoubleField at 0x18a54cc5cf8>)]

Tags: 文件函数fromtestimport数据库fieldsdb