L
lixx
Unregistered / Unconfirmed
GUEST, unregistred user!
有如下一表(Access数据库):
其中字段类型分别为:
DateTime为时间/日期型
voltage 为单精度浮点型
如何由表1变成表的形式?
表1 表2
+-----------------------+-----------+ +-------------+--------+---------+--------+
| DateTime1 | voltage | | DateTime2 | 1点 | 2点 | 3点 |
+-----------------------+-----------+ +-------------+--------+---------+--------+
| 2001-10-01 01:00:00 | 123.456 | // |2001-10-01 | 123.456| 223.232 |333.432 |
+-----------------------+-----------+ ______// +-------------+--------+---------+--------+
| 2001-10-01 02:00:00 | 223.232 | ________》 |2001-10-02 | 123.456| 223.232 |333.432 |
+-----------------------+-----------+ // +-------------+--------+---------+--------+
| 2001-10-01 03:00:00 | 333.432 | // |2001-10-03 | 123.456| 223.232 |333.432 |
+-----------------------+-----------+ +-------------+--------+---------+--------+
| 2001-10-02 01:00:00 | 223.122 |
+-----------------------+-----------+
| 2001-10-02 02:00:00 | 233.325 |
+-----------------------+-----------+
| 2001-10-02 03:00:00 | 523.496 |
+-----------------------+-----------+
| 2001-10-03 01:00:00 | 873.556 |
+-----------------------+-----------+
| 2001-10-03 02:00:00 | 673.452 |
+-----------------------+-----------+
| 2001-10-03 03:00:00 | 893.426 |
. .
. .
. .
其中字段类型分别为:
DateTime为时间/日期型
voltage 为单精度浮点型
如何由表1变成表的形式?
表1 表2
+-----------------------+-----------+ +-------------+--------+---------+--------+
| DateTime1 | voltage | | DateTime2 | 1点 | 2点 | 3点 |
+-----------------------+-----------+ +-------------+--------+---------+--------+
| 2001-10-01 01:00:00 | 123.456 | // |2001-10-01 | 123.456| 223.232 |333.432 |
+-----------------------+-----------+ ______// +-------------+--------+---------+--------+
| 2001-10-01 02:00:00 | 223.232 | ________》 |2001-10-02 | 123.456| 223.232 |333.432 |
+-----------------------+-----------+ // +-------------+--------+---------+--------+
| 2001-10-01 03:00:00 | 333.432 | // |2001-10-03 | 123.456| 223.232 |333.432 |
+-----------------------+-----------+ +-------------+--------+---------+--------+
| 2001-10-02 01:00:00 | 223.122 |
+-----------------------+-----------+
| 2001-10-02 02:00:00 | 233.325 |
+-----------------------+-----------+
| 2001-10-02 03:00:00 | 523.496 |
+-----------------------+-----------+
| 2001-10-03 01:00:00 | 873.556 |
+-----------------------+-----------+
| 2001-10-03 02:00:00 | 673.452 |
+-----------------------+-----------+
| 2001-10-03 03:00:00 | 893.426 |
. .
. .
. .