How to List Field's Name in table in Access Using SQL

后端 未结 14 1266
我在风中等你
我在风中等你 2020-12-09 17:15

Can you please let me know if it is possible to list all fields name in a MS Access table?

14条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-09 17:42

    Seems like this task was easier in older days. Likely this answer is highly version-dependent. It works for me in a quick test against an Access 2007 DB:

    select 
    Specs.SpecName AS TableName,
    Columns.FieldName
    from
    MSysIMEXColumns Columns
    inner join MSysIMEXSpecs Specs on Specs.SpecID = Columns.SpecID
    order by
    Specs.SpecName,
    Columns.FieldName
    

提交回复
热议问题