将行显示为列 [英] Display rows as columns

查看:95
本文介绍了将行显示为列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用于存储ID和日期的表格:



I have a table used to store the id and dates as:

group  id       date
--------------------------
  1     1     2013-01-05
  1     2     2013-01-06
  1     3     2013-01-07
  1     4     2013-01-08
  2     3     2013-01-06
  2     6     2013-01-09





我需要将这些数据水平放入水晶报告中:





I need this data to put into crystal reports horizontally as:

group: 1

    1              2              3             4
2013-01-05    2013-01-06     2013-01-07    2013-01-08





行说明组:1在标题部分。

说明日期和ID的行在详细信息部分。





如何实现这一目标?紧急请帮忙。



The line stating group:1 is in header section.
The line stating dates and id is in details section.


How to achieve this ? Urgent please help.

推荐答案

我认为在数据不恒定的情况下显示数据行不是一个好主意。

例如,如果列超出则显示四列,则它将转到另一行,这不是正确的方法。



您可以按如下方式显示数据:



组:1

1 2013-01-05

2 2013-01-06
3 2013-01-07

4 2013-01-08







nm
I think its not a good idea to display the data in horizantal row as the data is not constant.
For instance, you are displaying four columns if the columns exceeds then it will come to another line which is not a proper method.

You can show the data as follows:

Group : 1
1 2013-01-05
2 2013-01-06
3 2013-01-07
4 2013-01-08
.
.
.
n m


这篇关于将行显示为列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆