DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: why am i not getting result.....

  1. #1
    Join Date
    Jul 2000
    Location
    india
    Posts
    213
    Hi everybody,
    i am trying to get the result using the rownum...
    i tried the follo

    SQL> desc tempinsert
    Name Null? Type
    ----------------------------------------- -------- ----------------------------
    MAILMESSAGE VARCHAR2(2000)

    SQL> select * from tempinsert;

    MAILMESSAGE
    --------------------------------------------------------------------------------
    1,I101,,,
    2,i102,,,

    SQL> select rownum,mailmessage from tempinsert;

    ROWNUM
    ----------
    MAILMESSAGE
    --------------------------------------------------------------------------------
    1
    1,I101,,,

    2
    2,i102,,,


    SQL> select rowid,mailmessage from tempinsert;

    ROWID
    ------------------
    MAILMESSAGE
    --------------------------------------------------------------------------------
    AAAGiFAAFAAAAxOAAA
    1,I101,,,

    AAAGiFAAFAAAAxOAAB
    2,i102,,,


    SQL> select mailmessage from tempinsert where rownum = 1;

    MAILMESSAGE
    --------------------------------------------------------------------------------
    1,I101,,,

    SQL> select mailmessage from tempinsert where rownum = 2;

    no rows selected


    my prob is why am i not getting the result from the last query....

    thanks in advance
    pras



  2. #2
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

Posting Permissions

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


Click Here to Expand Forum to Full Width