Sequence number start with 00001

hi all
i want to create sequence i want it starts with 000001,and after creating of sequence it return the values like this 000002,000003,000004 and so on
is it possible that it start with 000001?
CREATE SEQUENCE SARAHSEQuence
INCREMENT BY 1
START WITH 000001
Sarah
opps i posted in form forum sorry
Edited by: SarahSarahSarah on Sep 3, 2009 1:20 AM
Edited by: SarahSarahSarah on Sep 3, 2009 1:20 AM

You can also use the To_Char() function.
A sequence gives you a number, so you can transform it with format mask to string:
Declare
  n  number
  s varchar2(10);
Begin
  select seq.nextval into n from dual ;
  s := To_Char(n, '000000') ;
End;Note that this question has nothing to do with Forms.
Francois

Similar Messages

  • Sequence should start with 000001 how?

    I need to create a sequence which starts with 000001 i used this query to create
    CREATE SEQUENCE sundayINCREMENT BY 1
    MINVALUE 000001
    MAXVALUE 999999
    START WITH 000001
    But the sequence is stating with 1 not 000001.

    That will be because the number "000001" and "1" are exactly the same thing.
    Oracle won't store the extra 0's, because it would be a pointless waste of space!
    If you're wanting to display the column containing the sequence number in a particular format, why not store the sequence as a number, and then format it whenever it is viewed eg:
    select to_char(1, 'fm099999') from dual;
    000001

  • Acrobat 9 Standard reinstall gives invalid serial number message. Serial number starts with 1016.

    I am revamping a laptop that was WinXP and making it Win7Pro.  I ditched the 128GB SSD and upgraded to a 256GB SSD.  I maxed out the RAM.  I got Windows and Office installed.  Acrobat 9 was next.
    I had pulled the serial number using BelArc Adviser.  he serial number starts with 1016 and has six sets of 4 numbers separated by dashes.
    I did the chat and was told that version 9 is too old for them to help me and they pointed me to the forums.  I did some searching but didn't come across anything that seemed to match.
    I do not have the installation CD.  This computer is 3-1/2 years old and I've only been the IT guy for 9 months.  I downloaded version 9 from the Adobe download site.
    Any help?
    Thanks,
    Loddie

    Re: acrobat 9 standard download help
    discussion on how to download Acrobat 9 Standard

  • Why does a new run once start up program run every time I start my computer? The start up program is coming from Reader XI. The only name on it is a number starting with 141_______.

    Why does a new run once start up program run every time I start my computer? The start up program is coming from Reader XI. The only name on it is a number starting with 141_______.

    See also https://forums.adobe.com/thread/1654402

  • Mobile received no bill or box. Serial number starts with QR.

    Mobile received no bill or box. Serial number starts with QR.
    I sent a broken iPhone to fix a Spanish company and was told it was beyond repair. They said that Apple offered me a new iPhone in exchange for mine and I accepted. I had to pay 200 euros. I have sent an Iphone without box or invoice and the serial number starts with QR. Is it new? How I can know that the iPhone comes from Apple? According to the Apple website is not guaranteed, as I entered the serial number in the support section of the web
    Hope you can help me.

    We can't help you. Have to take it up with your carrier. Yes, in the new sealed-system world, it is the Standard Way to resolve this kind of issues by offering a replacement phone. But the carrier has to make the notification to Apple regarding warranty coverage.

  • How Insert a number starting with 0

    Hi,
    I have created table numberTable with one column mynumber of datatype number(8).
    I want to insert a number into this column 00000000. But when I insert this number it becomes 0 only and my query fails to read 8 digits as it finds only one disgit stored in table. I want all these zero to be present in the column because one of my query read this 8 digit number and use into different application and update it back with increment 1.
    Can anyone tell me how can I save this number including with zero.
    Thanks in Advance
    Regards,
    Vipin

    Thanks for the quick response.
    I dont want to use it for display only. The thing is when I read this number it gives my only 0 as stored number however I inserted the number as 00000000. I have to create another string using these 8 zero's AB00000000 or AB00000001, AB00000002 and so on and stored the number back to the column as 00000001, 00000002 and so on respectively.
    If I put it like 10000000 then my application works fine and save the correct number as AB10000000, AB10000001 etc.
    But using this I loose 10000000 records which can be used to create these sequence if I starts with 00000001, 00000002 etc and update the column back to 00000003 by incrementing 1 everytime and can save AB00000001, AB00000002 etc.
    Kindly suggest.
    Regards,
    Vipin

  • IPhone 4 serial number starts with 61 came out of black box

    Dont new ones start with 7 and 8
    refurbs 5K?
    Whats 61 mean?

    Refurbs don't start with 5K and new ones may not start with 7 or 8.
    Regardless, does it really make any difference what the serial number is if the phone is working fine?

  • Issue to make mandatory field(SELD/BBD and Date of manufactor)in migo for particular Material type and material Number starting with'1' series.

    Hi friend,
    i have issue regarding mandatory  self life field (SELD/BBD and Date of manufactor)in migo for Batch Tab for particular Material start with '1' Series and material type.
    i want to make mandatory above field during GR from migo..any one let me know exit or badi for that to full fill this goal..
    Regard's,
    shaikh Khalid.

    Hi Shaikh
    First of all Thread is not closed seconldy as a good practice if you have resolved your issue kindly document it here so that it may help someone in future
    Nabheet

  • Iphone serial number starts with DX5K

    Hi All :
    My much awaited iphone 4 (new) starts with DX5K - does that mean its a refurbished one?  eventhough it doesnt start with 5K, it has a 5K in it. so confused here
    Any help would be appreciated

    I'm in agreement with Lawrence. Serials are randomised, i have a job where i see a lot of technology including iPhones and iPads. I have seen serials beginning with most letters of the alphabet.

  • Call manager directory number starting with \+

    I have a CUCM ver 8. Some of the directory numbers were configured to use \+, such as \+12025551201.
    The problem is, when I tried to retrieve CDR, using the number \+12025551201,  it comes up with:
    Error Code     Error Description
    10021     There are no matching records
    I tried to remove the \+ sign, it is still the same.
    So what is workaround?

    Hi
    Try to pull the CDR by without mentioning anything for the busy hours, if u got any reports go through the actual digits in the origin.
    If fails we need to go for CDR configuration, check and let me know

  • Sequence Number Generation with Global Container

    Hi ALL,
    Can any plz send me the steps of using global container for generation seqence number's
    And also if possible send me the code.
    Thanks & Regards
    Rupash

    Hi Rupesh,
    chack this code:
    public String seqNumber(Container container)
          int i;
          GlobalContainer global=container.getGlobalContainer();
          String getnum=(String)global.getParameter("a");
          if(getnum==null){
                     global.setParameter("a","1");  i=1;
          else{
                i=Integer.parseInt(getnum); i++;
                global.setParameter("a",String.valueOf(i));
          return String.valueOf(i);
    **Reward points if helpful
    --Sankar Choudhury

  • Insert number starting with '00'

    Hi, this is probably an easy one but its causing me a few problems at the moment.
    I'm inserting data into a number(3) field of type '003','004' etc. When i query the data thats been inserted the leading zero's have been removed. I'd like to keep this field as a number field so is there a way I can format the data when I'm inserting so that the zeros remain? I'd like to query it and see 003, 004 rather than 3,4
    thanks,
    Ian

    The problem isn't the insertion. The problem is in the client that does the retrieving. The thing is, most clients don't expect numbers to have leading zeroes, so they remove them. If you want leading zeroes you just have to tell your client. In SQL*Plus you could do
    SQL> column col1 format  0009
    SQL> select col1 from t1;
    COL1
    0001
    0002
    0012
    0013
    0014
    0015
    15 rows selected.
    SQL> Or solve the problem using SQL -
    SQL> select to_char(col1, '0999') from t1
      2  /
    TO_CH
    0001
    0002
    0012
    0013
    0014
    0015
    15 rows selected.
    SQL> Of course, it's no longer a NUMBER datatype but this is for display only, right?
    Cheers, APC

  • FInding missing sequence number

    Dear All
    I have a column in table like this (actually its just a sample):
    TAB
    MMxxxx9988
    MMxxxx9990
    MMxxxx9995
    MMxxxx9998
    MMxxxx9999
    MMxxxx0000
    MMxxxx0001
    MMxxxx0003
    MMxxxx0004
    MMxxxx0005
    MMxxxx0008
    xxxx is variable
    last four digit is a sequence number start with 0000 and end with 9999.
    when the last four digit exceeds 9999 it reset to 0000
    My question is : how can we find the missing sequence number for that column.
    example:
    for the above table , it should give the below result:
    TAB
    MMxxxx9989
    MMxxxx9991
    MMxxxx9992
    MMxxxx9993
    MMxxxx9994
    MMxxxx9996
    MMxxxx9997
    MMxxxx0002
    MMxxxx0006
    MMxxxx0007
    Thanks

    One another way of doing it:
    For ease of verification, I have removed the records from 0001 to 9988.
    with data as
      select 'MMxxxx9988' col from dual union all
      select 'MMxxxx9990' col from dual union all
      select 'MMxxxx9995' col from dual union all
      select 'MMxxxx9998' col from dual union all
      select 'MMxxxx9999' col from dual
    --  select 'MMxxxx0000' col from dual union all
    --  select 'MMxxxx0001' col from dual union all
    --  select 'MMxxxx0003' col from dual union all
    --  select 'MMxxxx0004' col from dual union all
    --  select 'MMxxxx0005' col from dual union all
    --  select 'MMxxxx0008' col from dual
    select distinct col, nxt_val, substr(col, 1, 6) || to_char(st_with + level, 'fm00009') miss_seq
      from (
            select col, nxt_val, col_num st_with, nxt_col_num end_with
              from (
                    select col, lead(col) over (partition by substr(col, 1, 6) order by substr(col, -4, 4)) nxt_val,
                           to_number(substr(col, 7, 4)) col_num, to_number(substr(lead(col) over (partition by substr(col, 1, 6) order by substr(col, -4, 4)), 7, 4)) nxt_col_num
                      from data
             where abs(col_num - nxt_col_num) > 1
    connect by level <= (end_with - st_with) - 1
       and prior col = col
       and prior sys_guid() is not null
    order by col;
    COL        NXT_VAL    MISS_SEQ    
    MMxxxx9988 MMxxxx9990 MMxxxx09989 
    MMxxxx9990 MMxxxx9995 MMxxxx09991 
    MMxxxx9990 MMxxxx9995 MMxxxx09992 
    MMxxxx9990 MMxxxx9995 MMxxxx09993 
    MMxxxx9990 MMxxxx9995 MMxxxx09994 
    MMxxxx9995 MMxxxx9998 MMxxxx09996 
    MMxxxx9995 MMxxxx9998 MMxxxx09997 
    7 rows selected

  • How to set phone number format like start with 0 or + it is not allowing

    Hi All,
    We Are trying to give in phone number field as number start with 099235623 or +91- like that
    but it is not allowing to chage format
    it is taking 99235623 eventhouh we entered as infront of zero
    our requirement is we need to enter zero also
    please give any idea
    Thanks
    Rio

    Hi,
    First Check the Data Type of the Field. That must be "DTYPE_PHONE". If this is the Data Type, then, it will allow the phone format set at the Locale Level for the Application. Check the Format at Locale Level.
    [OR]
    It's simple, you can change the Data Type of the particular Field to "DTYPE_TEXT".
    Regards,
    Joseph ArulDass

  • TS1292 my card is not letting me redeem my $15 credit from my itunes card and the serial number does not start with GCA

    the system keeps saying that my itunes card is invalid and the serial number starts with GCA I NEED HELP I dont have $15 to waste

    Make sure you're using the correct code. For most iTunes cards, the code is under the scratchoff area on the back of the card. Also, the gift card you're trying to use must have been issued in the country whose iTunes Store you are using; you cannot use a card from another country. If you're sure you're using the correct code and that the card was indeed issued in your country, contact the iTunes Store Support; instructions are at the bottom of the article from which you came.
    Regards.

Maybe you are looking for

  • Allowing end-user to create a user using a form

    Hi all, I'm working on a project whereby I must allow end-users from anywhere to create an account for themselves (Register). Which table/object should I create a form on to enable users to register. (APEX 3.1.2) kind regards Mel

  • How to capture mapping error and able to send it..

    Hi Friends, We have a requirement, where in, if a mapping fails due to missing required element or improper formation of the source xml message, we need to capture this and need to create an error message, which contains the error description as one

  • Crash in windows vista

    Hi all, two days ago i downloaded the upgrade for itunes 7.7.1 and it became itunes 8... ok! but, when i connected my iPhone, CRASHHHHHHH!! (for 4 times) I haven't see (NEVER!!), my PC with the sweet blue window typical of windows!! Anyone have the s

  • ISE authentication with windows hibernate

    i have ISE 1.2 , machine can't authenticate during hibernate so user must logoff and login again. is this applicable on ISE or not?

  • Constant camera speed on path

    I have a moving and tilting camera in 3D environment. I want to movement and tilting to different directions to be constant and smooth without 'locking' exact camera position to exact time. If I use keyframes to edit camera path, it messes up the con