如何通过SQL查询在MS访问中获取链接的ODBC表的列
我已经从SQL Server和Excel链接了MS Access数据库中的几个表。现在,我想使用JDBC从Java应用程序查询它们。但是,当我运行查询时,从sys.msysobjects中选择 * type = 4;
> 我可以看到这些表的列表,但是我也想列出这些表的列。我已经查询inovery_schema.columns
,uca_metadata.columns
,inovys_schema.schema.schema.schema.shemy_columns
等。 。
高度赞赏实现上述任何帮助。
谢谢
I have linked a couple of tables in MS Access database from SQL Server and also from Excel. Now I want to query them from a Java application using jdbc. But when I run the query SELECT * FROM sys.MSysObjects Where Type = 4;
I am able to see the list of those tables, but I also want to list the columns for those tables. I have queried Information_schema.Columns
, UCA_METADATA.Columns
, Information_schema.System_Columns
etc.. and lot more system tables of MS Access but did not succeed.
Any help to achieve the above is highly appreciated.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用 sys_extended_properties ,请注意:它仅包含在SQL中填充的描述的字段。
如果您不想做这项工作,则可能必须使用左JOIN。
对于下面的 ms-access查询示例下面我们必须链接这些系统 sql 表:
sys_tables , sys_extdended_properties , sys_columns , sys_types , inofy_schema_columns 。
If you use sys_extended_properties, a note: it only contains fields with a description filled in SQL.
If you don't want to do this work you might have to use Left Join.
For the folowing MS-Access Query example below we must link these system SQL tables:
sys_tables, sys_extended_properties, sys_columns, sys_types, INFORMATION_SCHEMA_COLUMNS.