Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2011
    Posts
    1

    Unanswered: pattern printing

    how can i print the following pattern send me the code for that in oracle

    1
    1 2
    1 2 3
    1 2 3 4
    1 2 3 4 5
    Last edited by Anjireddy; 06-08-11 at 12:13.

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    >how can i print the following pattern
    you just did so!
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Nov 2003
    Posts
    2,935
    Provided Answers: 12
    Code:
    SELECT '1' FROM dual
    UNION
    SELECT '1 2' FROM DUAL
    UNION
    SELECT '1 2 3' FROM DUAL
    UNION
    SELECT '1 2 3 4' FROM DUAL
    UNION
    SELECT '1 2 3 4 5' FROM DUAL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •