如何通过MS Access 2007或MS SQL Server 2005中的SQL将字段转换为行 [英] How to convert fields into rows through SQL in MS Access 2007 or MS SQL Server 2005
本文介绍了如何通过MS Access 2007或MS SQL Server 2005中的SQL将字段转换为行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个旧版MS Access 2007表,该表包含52个字段(每年每个星期1个字段),这些字段代表历史销售数据(实际是一年中的一个字段).我想将此数据库转换为更常规的时间/值列表.
I have a legacy MS Access 2007 table that contains 52 fields (1 field for each week of the year) representing historical sales data (plus one field for the year actually). I would like to convert this database into a more conventional Time/Value listing.
有人知道如何在不编写具有52个以上显式参数的查询的情况下做到这一点吗?
Does anyone knows how to do that without writing queries with 52+ explicit parameters?
(如果在MS SQL Server 2005下存在解决方案,我也可以导出/导入表)
(if a solution exists under MS SQL Server 2005, I can also export/import the table)
推荐答案
查看全文