Page 1 of 1

db2 doubt

Posted: Wed Sep 27, 2006 12:58 pm
by supriya
1) How to display
*
* *
* * *
using select query?

sql query

Posted: Wed Sep 27, 2006 3:36 pm
by Krishna
Please check the answer in

http://www.ibmmainframeguru.com/Mainfra ... php?t=1144

It will help you to get desired result.



Thanks,
Krishna

Posted: Sat Oct 07, 2006 4:25 pm
by ovreddy
Hi Krishna,

Please refer to the following syntax to get the result.

SELECT '*' FROM SYSIBM.SYSDUMMY1
UNION
SELECT '**' FROM SYSIBM.SYSDUMMY1
UNION
SELECT '***' FROM SYSIBM.SYSDUMMY1;
---------+---------+---------+---------+---------+---------+---------+---------+

---------+---------+---------+---------+---------+---------+---------+---------+
*
**
***
DSNE610I NUMBER OF ROWS DISPLAYED IS 3

Hope you got what you want.

Thanks,
Reddy.