User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Oracle section within the Web Development category of DaniWeb, a massive community of 423,637 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,215 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Oracle advertiser: Programming Forums
Views: 1315 | Replies: 2
Reply
Join Date: Jun 2008
Posts: 1
Reputation: g.d.s.prasad is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
g.d.s.prasad g.d.s.prasad is offline Offline
Newbie Poster

Pl/Sql Procedure

  #1  
Jun 18th, 2008
How to write a procedure which takes integer N as its IN parameter and print a number series (up to N) in the
Following format.
1
2 2
3 3 3
4 4 4 4
: - - -
N N N N N…………N
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 197
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Pl/Sql Procedure

  #2  
Jun 18th, 2008
by taking a piece of paper and starting to figure out how to do it.
When you know that, you can fire up an editor and write your code.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote  
Join Date: Feb 2007
Location: Bangalore,India
Posts: 1,270
Reputation: debasisdas is on a distinguished road 
Rep Power: 4
Solved Threads: 80
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Nearly a Posting Virtuoso

Re: Pl/Sql Procedure

  #3  
Jun 19th, 2008
you simply need to write a loop.
and no need to create a procedure at all for that and you need to remember that printing somthing like that is not the main purpose of defining procedures in database.
Share your Knowledge.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Oracle Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Oracle Forum

All times are GMT -4. The time now is 10:09 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC