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

Similar Messages

  • 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

  • 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

  • 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

  • Insert numbers starting with one in each xml files sequentially

    The following is a sample of two of my xml files
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    </front>
    </article>
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    </front>
    </article>
    This is my source code
    public class ReadTexFile
         public void Go2Directory(String Directory)
                    File scan = new File(Directory);
              String DirList[] = scan.list();
              try
                   for(int i = 0; i < DirList.length; i++)
                        File ChkDir = new File((new StringBuilder()).append(scan.getPath()).append("\\").append(DirList).toString());
                        if(ChkDir.isFile())
                             dum1 = ChkDir.toString().toUpperCase();
                             if(dum1.lastIndexOf(".XML") > 0)
    String ExecFile = ChkDir.toString();
                                  File TexfileName = new File(ExecFile);
                                  ReadFileContent(TexfileName);
                                  fileCount++;
                             if(!ChkDir.exists())
                                  System.out.println((new StringBuilder()).append("NO FILES FOUND IN THE DIRECTORY").append(scan).toString());
              catch(Exception e)
                   System.out.println((new StringBuilder()).append("The Error Is in ").append(e).toString());
         public void ReadFileContent(File TexFile)
    try
                   BufferedReader br = new BufferedReader(new FileReader(TexFile));
                   String fetchline = "";
                   for(String line = ""; (line = br.readLine()) != null;)
                        fetchline = (new StringBuilder()).append(fetchline).append(line).append("00000000").toString();
                   br.close();
    cntr=1;
                   fetchline = RemoveIfAlreadyExist(fetchline);
                   fetchline = fetchline.replace("00000000", "\n");
                   File tmp = new File(TexFile.getParent(), "XmlFileTmp.xml");
                   BufferedWriter bw = new BufferedWriter(new FileWriter(tmp));
                   bw.write(fetchline);
                   bw.flush();
                   bw.close();
                   File org = new File(TexFile.getAbsolutePath());
                   System.gc();
                   tmp.renameTo(org);
              catch(IOException ioe)
                   System.out.println((new StringBuilder()).append("The IO Exception occured because ").append(ioe.getMessage()).toString());
              catch(NullPointerException npe)
                   System.out.println((new StringBuilder()).append("The Null Pointer Exception occured because ").append(npe.getMessage()).toString());
         public String RemoveIfAlreadyExist(String line)
    String res = "";
    int cc=1;
              Pattern Regex = Pattern.compile("<product>00000000<citation citation-type=\".*?\" id=\"\">");
              for(Matcher RegexMatcher = Regex.matcher(line); RegexMatcher.find();)
                   String chkEntity = RegexMatcher.group();
                   String subchkEntity1=chkEntity.substring(0,chkEntity.lastIndexOf("\">"));
                   String s1 = Integer.toString(cc);
                   if(s1.length()==1)
                        res = line.replace(subchkEntity1,subchkEntity1+"ref00"+cc+"");
                   if(s1.length()==2)
                        res = line.replace(subchkEntity1,subchkEntity1+"ref0"+cc+"");
                   if(s1.length()==3)
                        res = line.replace(subchkEntity1,subchkEntity1+"ref"+cc+"");
    cc++;
              return res;
    My output from my code is
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="ref002">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref002">
    </citation>
    </product>
    </front>
    </article>
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    </front>
    </article>
    But I need my output as
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="ref001">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref002">
    </citation>
    </product>
    </front>
    </article>
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="ref001">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref002">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref003">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    </front>
    </article>Could anyone please tell me what modifications to do in my code.

    Hi sony,
    Since you are trying to replace the pattern of subchkEntity1,
    it replaces all the lines which contain ("<citation citation-type="book" id=")
    including(...id="refxxx...)
    & not ("<citation citation-type="book" id="") alone.
    So ,to eliminate this, we have to match the string with chkEntity &
    replace only the first occurance.
    I've modified the method RemoveIfAlreadyExist.
    It works fine now.
    public String RemoveIfAlreadyExist(String line)
             int cc=1;
              Pattern Regex = Pattern.compile("<product>00000000<citation citation-type=\".*?\" id=\"\">");
              for(Matcher RegexMatcher = Regex.matcher(line); RegexMatcher.find();)
                   String chkEntity = RegexMatcher.group();
                   int lastIndex = chkEntity.lastIndexOf("\">");
                   String subchkEntity1=chkEntity.substring(0,lastIndex);
                   String s1 = Integer.toString(cc);
                   if(s1.length()==1)
                        line = line.replaceFirst(chkEntity,subchkEntity1+"ref00"+cc+"\"");
                   if(s1.length()==2)
                        line = line.replaceFirst(chkEntity,subchkEntity1+"ref00"+cc+"\"");
                   if(s1.length()==3)
                        line = line.replaceFirst(chkEntity,subchkEntity1+"ref00"+cc+"\"");
                            cc++;
              return line;
         }

  • 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.

  • External number Range with leading zeros for Handling Units

    Hi Experts
        My requirement is to use the External number for the Handling Units provided by vendor.That number starts with 2digits"00"+18  for Example:00123456789123456789
      I am Using HU_VEKP Object for no range and maintaining
    External No Range From 00000000000900000000 to 00000000000999999999.
    But When i am giving Number 00000000000900000001 its only taking
    900000001.
    Kindly suggest me the right way to take leading zeros.
    Rewards for answer sure if it works.
    rajesh

    Hi Laksmipathi
                          I am maintaining the number range for External number range coz its vendor supplied HU.
               But the prefix zeros has meaning for identifying the Handling unit Functionality.In realtime IF prefix contains Say "0000" it refers to carton
    If prefix contains say "0010" it refers to pallet.
               So i need to satisfy there requirement.For example If it is for material number we can maintain In OMSL by check box of leading zeros.
                But i am not able to find any setting for this Handling units.U can check this object HU_VEKP in SNRO tcode where i am maintaining Number range.
    Thanks give suggestion
    RajeshS

  • Siri won't dial numbers starting with "0"

    Am on 5.0.1.
    I have a number for a contact stored as starting with 019 (it's a low cost long distance carrier pre-fix). Siri says dialling and then says can't call this number. Even if I dictate the number, Siri refuses to dial any number starting with 0.
    Mighty frustrating......any work-srounds for this pls?
    Thanks

    I say "zero"....and Siri displays the number correctly but just doesn't dial. As mentioned above, the same number stored in the contact also doesn't get dialled.
    Not sure if this helps, but the total number (including the 019 prefix) is 15 digits long.

Maybe you are looking for

  • Why am I getting error message when printing?

    I have 2 printers and have them both installed and connected, and both put out a test print ok, but when I try to print any document the print list shows it with an error, but won't give any explanation as to what the error is. How can I correct this

  • How can I download a external hard drive to my MacBook pro ?

    they have to replace my Macbook Disc , and before the exchange of the disk I back up my pictures, videos, music,etc.. to a external hard dirve disk. now I have my macbook with me with the new disk , please somebody tell me how to pass the external ha

  • Not able to open Canon 6D raw file in PS CS5! Can i Upgrade from CS5 to CS6?

    I recently purchased the Canon 6D. I'm running Photoshop CS5 on my windows computer. I want to work in Camera Raw but I need version CS6 in order to do so. I'm having great difficulty getting a link to purchase the upgrade. I need help, please.

  • Some windows won't display?

    For some reason, some of my windows in dreamweaver will not display correctly, or much at all. For instance, when you first open dreamweaver and select "new dreamweaver site" all I get is a window that displays a few text fields and then whatever is

  • Not Able To Connect Internet Using Ethernet Getting Not Able To Connect PPP Server

    I was able to connect to internet using ethernet,but suddenly it is not working when i try to connect it says not able to connect ppp server but i am able to connect same ppoe to windows machine