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

Thread: Inset statement haywire

  1. #1
    Join Date
    Oct 2008
    Posts
    5

    Red face Inset statement haywire

    This is the insert statement

    insert into INFRA.TBL_MST_SIM (I_MOB_NO,I_SIM_NO,S_VENDOR,S_SIM_TYPE,S_CURR_POSITION,C_STATUS,DT_CREATED) values (9748499557,89913100000031926675,'AIRTEL-KOL','NON-VOICE',NULL,NULL,sysdate);

    this is the table structure
    INFRA.TBL_MST_SIM
    Name Null? Type
    ----------------------------------------- -------- ----------------------------
    I_MOB_NO-----------------------------------------NUMBER(10)
    I_SIM_NO-----------------------------------------NUMBER(30)
    S_VENDOR-----------------------------------------VARCHAR2(50)
    S_SIM_TYPE-----------------------------------------VARCHAR2(30)
    S_CURR_POSITION-----------------------------------------VARCHAR2(50)
    C_STATUS-----------------------------------------CHAR(1)
    DT_MODIFIED-----------------------------------------DATE
    DT_CREATED-----------------------------------------DATE
    S_MODIFIED_BY-----------------------------------------VARCHAR2(15)
    S_CREATED_BY-----------------------------------------VARCHAR2(15)
    C_IS_DELETED-----------------------------------------CHAR(1)

    The error filed is "I_SIM_NO"

    data is getting inserted correctly but when I try to see the data all what its showing is

    select I_MOB_NO,I_SIM_NO from INFRA.TBL_MST_SIM;
    ________________________________
    I_MOB_NO I_SIM_NO
    _________________________________
    9748499557 8.9913E+19


    what is wrong can any one tell me?

  2. #2
    Join Date
    Apr 2003
    Location
    Pune,Maharashtra. India.
    Posts
    245
    i am not sure but either of below 2 should work.
    1)try "set long 1000000" before that select increase 0 if needed
    2)try col I_SIM_NO format 999999999999999
    Rgds
    Parag

  3. #3
    Join Date
    Mar 2006
    Location
    Charlotte, NC
    Posts
    865
    1. Find the max length of the column "I_SIM_NO"
    select max(length(i_sim_no)) from INFRA.TBL_MST_SIM;
    2. Format the column accordingly.
    col i_sim_no for 99999999999999999999999;

    Thanks,
    Vijay Tummala

    Try hard to get what you like OR you will be forced to like what you get.

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