是否可以从 Access 数据库导入标题?

Is importing headings from an Access database possible?

有没有办法将标题从 Access 数据库导入数据框?

由于表格和标题很多,我不想为每一列都键入标题。

我到处都找不到解决方案:(

不幸的是,Access 数据引擎(JET 或现在的 ACE)没有将 return table 结构(模式)作为查询的命令。大多数数据库都有此功能,但 Access 没有。

有几种解决方法:

Write some code in VBA + Access.
Write some code in your favorite tool - but it WILL have to support COM object automation.

不过,您可以考虑使用 Access 和数据库“documenter”。这能够输出每个 table.

的柱状格式

上面的输出如下所示:

因此,您可以将其导出到文本文件或其他文件。