创建报告 [英] creating a Report

查看:57
本文介绍了创建报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我们可以使用DB2创建这种格式的报告。

报告#

日期:


column1 column2 column3

总计

字段名称1 999 999 999

9999


字段名称2 888 888 88

8888


字段名称3 77 77 777

7777

请建议我一个方法...截至目前我在AIX中使用DB2 SQL

korn shell脚本...我们没有使用任何工具所以是问题...


谢谢

Hi all,

Can we create a report of this format using DB2.
Report#
Date:

column1 column2 column3
total
Field Name1 999 999 999
9999

Field Name 2 888 888 88
8888

Field Name 3 77 77 777
7777
Please suggest me a way to do... as of now I am using DB2 SQL in AIX
korn shell script... and we are not using any tool so is the problem...

thanks

推荐答案



vp schrieb:

vp schrieb:
大家好,

我们可以使用DB2创建这种格式的报告。

报告#
column1 column2 column3
总数
字段名称1 999 999 999
9999

字段名称2 888 888 88
8888

字段名称3 77 77 777
7777

请建议我一个方法...到目前为止我在AIX中使用DB2 SQL
korn shell脚本...我们没有使用任何工具,所以问题是......

谢谢
Hi all,

Can we create a report of this format using DB2.
Report#
Date:

column1 column2 column3
total
Field Name1 999 999 999
9999

Field Name 2 888 888 88
8888

Field Name 3 77 77 777
7777
Please suggest me a way to do... as of now I am using DB2 SQL in AIX
korn shell script... and we are not using any tool so is the problem...

thanks




你试图重新格式化结果集(表格输出)你得到



(仅举例!)

db2"从user_table选择名称,金额,备注>


名称金额备忘录

--------------------------- ------------------- -

-----------------------------------------

布什10000.00总裁

施瓦辛格20000.00 gouvernor


2条记录选择


到一个报告look-alik e与页眉,页脚,总结?或者你是什么?b $ b试图实现?


使用perl脚本来解析db2命令的输出


joerg



are you trying to reformat a resultset (tabular-output) you are getting
with:
( only an example!)
db2 "select name,amount,remark from user_table"

NAME AMOUNT REMARK
--------------------------- --------------------
-----------------------------------------
Bush 10000.00 president
Schwarzenegger 20000.00 gouvernor

2 record(s) selected

to a report look-alike with header, footer, sum-ups ? or what are you
trying to achieve ?

use a perl-script to parse the output from the db2-command

joerg





我使用EXPORT实用程序和来自DB2表的数据顶部

我必须包含一些文字来识别每一列和一行

一些CAPTION。

谢谢

Hi,

I have data coming from DB2 tables using EXPORT utility and on top of
it I have to include some text to identify every column and row with
some CAPTION.
thanks


vp写道:
vp wrote:


我使用EXPORT实用程序从DB2表中获取数据顶部
它我必须包含一些文字来识别每个列和行
一些CAPTION。
Hi,

I have data coming from DB2 tables using EXPORT utility and on top of
it I have to include some text to identify every column and row with
some CAPTION.




是的,你可以。另一个线程就是在上周讨论过的。看看

那里。


简而言之,你可以添加包含标题的另一行:


VALUES''col1'',''col2'''''col3''

UNION ALL

SELECT ...


-

Knut Stolze

DB2信息集成开发

IBM德国



Yes, you can. Another thread discussed this just last week. Have a look
there.

In short, you can add another row that contains the caption:

VALUES ''col1'', ''col2'', ''col3''
UNION ALL
SELECT ...

--
Knut Stolze
DB2 Information Integration Development
IBM Germany


这篇关于创建报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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