Results 1 to 4 of 4

Thread: String function

  1. #1
    Join Date
    Oct 2012
    Posts
    1

    Unanswered: String function

    Hi to find out the D:='sandeep' ,

    D is number or not if is not number which exception we need to use ?

  2. #2
    Join Date
    Jun 2004
    Location
    Liverpool, NY USA
    Posts
    2,509
    ORA-01722: invalid number
    Bill
    You do not need a parachute to skydive. You only need a parachute to skydive twice.

  3. #3
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    BEGIN
    D VARCHAR2(16);
    VAL NUMBER;
    BEGIN
    D:='sandeep';
    VAL := TO_NUMBER(D);
    END;
    /
    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.

  4. #4
    Join Date
    Sep 2012
    Posts
    18
    what number you expect from a word 'sandeep' ?


    i guess it cant be convert..

Posting Permissions

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