How to add 0 before the account code

Hi all

My requirement is.

There is a field in the database.

the field called backaccount, size is 16.

cbankac number (16)

in the basis of the value of the field is as follows
1 345211656
2 54442215464
3 45548787878777


My requirement is I want to make sure in the cbankac value in the field must be 16 digits. If the value is less than 16 digits, then it will fill with 0, something like below

1 0000000345211656
2 0000054442215464
3 0045548787878777

Published by: user12187801 on March 7, 2010 03:54

Hello
Here you go

WITH DATA AS
(SELECT  345211656 x FROM dual UNION ALL
SELECT   54442215464 FROM dual UNION ALL
SELECT   45548787878777 FROM dual)
SELECT lpad(x,16,'0') FROM DATA

See you soon!
Bobin

Tags: Database

Similar Questions

  • How to add space before the content when printing or export PDF

    Hi Experts,
    In OBIEE 11.1.1.6.0.
    It has a single report worth two requests, in order to show the structure of the hierarchy, I add a few spaces in front of the content, however, when I print or PDF exprt, it will be gone. How to solve this problem?

    A single method (maybe it's BUG):
    Inter-generational column-> data-> treat as html Format
    Then in Edit formula, enter the following code: "< table > < tr > < style td =" padding-left: 20 ">" | "Time '." "" By name of half | "" < table > < /tr > < / table > ' "
    When I print or PDF exprt, it will display the HTML to PDF.

    Second method:
    Inter-generational column-> data-> Text Format gross (do not break spaces)
    "Then in Edit formula, enter the following code:" "| Time '. " By name half. "
    When I print or PDF exprt, spaces will be missing in the PDF format.

    I try to make many methods, but can't find the right solution to add spaces before the content of the second report to see the structure of the hierarchy as below:
    CombinedColumn (year and month column combined)
    2009
    -200901
    -200902
    2010
    -201001
    -201002
    Note: '-' in the name of space

    Is there a good suggestion or the method associated with this problem? Please help me to find or give me better advice. Thanks for your kindly help.

    Hey Kobe,

    To achieve this,

    2009
    -200901
    -200902
    2010
    -201001
    -201002

    You can use properties of column-> right = Horizontal alignment and Vertical alignment = at the top, but you have multiple queries in your report. The approach is to differentiate the different levels and apply conditional formatting. Try this approach,

    1. click on the request combined so that you can see the option "Add the result column" in the left pane
    2. click on 'Add a result column', in the type of column in your time dimension column (if the column is first has type saw_0)
    3. yet once, click on 'Add column result', enter the column formula: case when (saw_0) LENGTH > 5 then 2 1 other end

    Here LENGTH (saw_0) > 5 will return only the month records (i.e) 200901,200902 etc.

    4. now click on properties on the column to the new column added in step 2, goto-> add a Condition of-> conditional formatting select the column added to step 3->

    -Case when (saw_0) LENGTH > 5 then 2 1 other end = 2 then format-> right = Horizontal alignment and Vertical alignment = Top

    This indentera the month right column. This will work when exporting to pdf format.

    Kind regards
    DpKa

  • How to add programs to the start of the file using Vista

    How to add programs to the start of the file using Vista

    Hi Harry,.

    Oddly enough, you can actually do it in msconfig except if it is already there and simply not checked as opposed to not being do not at all (although you would think that they would understand this option).

    The easiest way is to add the program (or a shortcut to the program) in the folder all Menu Programs Startup.   Here is the procedure: http://www.ehow.com/how_5098465_add-startup-programs.html.  Remember, to do this, you must either a shortcut existing (perhaps on the desktop or elsewhere in the menu all programs) or you need to find the source file (probably somewhere in C:\Program Files depending on what you want to add) and either copy it and add it to the startup folder or right-click on it and create a shortcut to copy into the startup folder.  Once you reboot, this program starts during the initial commissioning process and you will now be able to control using msconfig.exe, if you wish.

    Another option is to do this by using the registry editor.  If you decide to try this, first create a restore AND system restoration point backup of the registry before you begin.  Here is the procedure: http://www.ehow.com/how_7304438_add-program-msconfig-regedit.html.  I recommend to use this ONLY if the previous procedure does not work for some reason any as long as that the procedure is simpler and safer.

    If you want a simpler way to manage and control startup programs, you can try it free WinPatrol http://www.winpatrol.com/download.html that change monitors for startup programs if you set it to run in real-time so that you know when to try new programs are added to your Start menu and, for the purposes of this question includes an Add button which opens a link to a window of Windows Explorer where you can browse the program you want to add, click open to select and then add it directly to the commissioning.  If you prefer it does not work all the time, you can simply uncheck the box which includes this program and it will work only when you choose to run (but at the start, will work as an indication otherwise or configured).  It will appear not in the start menu in all programs (Finally, WinPatrol is, but not programs, it adds to the start), but it will appear in WinPatrol (which also lets you manage what you want or not start with checkboxes as in msconfig) and sure in msconfig - but only after a reboot is complete the process of adding.

    I hope this helps.  Personally, I use WinPatrol myself and let it run in real time.  Since I do a lot of installations, it helped me often prevent the addition of a startup item I haven't really need and reduces how many times I actually need to check what is happening out there.

    If this answers your question without the need to repost in another forum, please mark it as an answer.  If this isn't the case, then of course you must republish as suggested above.

    Good luck!

  • How to add bookmarks to the IE Favorites list?

    How to add bookmarks to the IE Favorites list? I can find them on recently added bookmarks, but they are not listed when I click on IE Favorites.

    Firefox bookmarks are stored in your Firefox profile folder, they are not synchronized with the IE Favorites.

  • How to add text to the file selected?

    I have already updated title but I don't know how to add it to the selected real file (the one in the middle)... I read on some other forums but its still confuse me.  Also, is there anyway to add the effect of movement, as drag in or dissolve almost?

    Screen Shot 2016-02-19 at 10.27.40 PM.png

    I mean this in the nicest way possible, but it's very wacky workspace you put in place there. Create titles is muuuuch easier in the standard workspace Edition. When you create / open a title in the editing workspace, he creates a floating large window with the title of all the members of panels. It is about the only time I am ok with windows in the first floating. You will create the title in the window title, and then close the window title entirely. The video for the title will then be in your project Panel (which you can not common to see in your current workspace configuration, but will be very apparent in the workspace standard edition in the lower left). So the best thing to do is to simply drag the title element of the project to sequence Panel (another Panel today, you don't see in your current workspace arrangement.

  • I want to print PostScript in illustrator, then put the Distiller how to add print on the list?

    I want to print PostScript in illustrator, then put the Distiller how to add print on the list?

    What exactly do you want to do it is not possbile to save to the PDF format?

  • How to add licenses in the VIP administration Console

    How to add licenses in the VIP Admin console?

    Hello

    Please see: -.

    Manage your cloud of Adobe Creative for the composition of teams

    Adobe Creative Cloud for teams FAQ

  • Cannot figure out how to "add-in" for the 2013 Outlook application... said the loading behavior is not loaded. How can I fix it?

    Cannot figure out how to "add-in" for the 2013 Outlook application... said the loading behavior is not loaded. How can I fix it?

    Hi amandab9126792,

    2013 Outlook does not work with Acrobat X because they are not compatible. Please check the compatibility to https://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html.

    Kind regards

    Nicos

  • How to add text to the gif format

    Hello, I am a beginner in photoshop.

    I want to add text to my gif as part of the animation, but somehow the text transparent look, even though I already use black color for the text.

    Could someone give me tutorial how to add text to the gif and then do some sort of subtitle?

    Thank you...

    The text layer is 2 layers under the real background layer in your file. Check your layers panel. Click, drag and drop the text layer currently selected in your layers 2 screenshot above or the visible layers, especially to see if your text will appear - it should ideally.

    Settings - when save you for Web & devices, you can customize options preset for GIF on the top right of your dialog "save for Web & devices".

  • How to add text to the Notes?

    Hi all

    I want to add some text in the notes. I create notes with success.

    My note label and name are not apply any script executed successfully.

    How to add text to the note? My script is:

    indesign #target

    myDocument var = app.documents.add ();

    var myTextFrame = myDocument.pages.item (0).textFrames.add ();

    myTextFrame.geometricBounds is ['10', 15 ' p', '50 p', '50 p'];.

    myTextFrame.contents = "Adobe Indesign";

    var insertionPoint = myTextFrame.insertionPoints.item (-1);

    var note = insertionPoint.notes.add (1433299822);

    Note.label = "NewNote";

    Note. Name = "FirstNote";

    Thank you

    Jin

    try sth. like

    Note.texts [0] .silence = 'some content '.

    Hans-Gerd Classen'

  • How to add buttons in the script, and then click on run different codes?

    If we run the script, then it should display ok, cancel button 6 button. If we click on button1 coding with button1 dangerousness must be running and so on.

    Button1

    Button2

    Button3

    Button4

    button5

    Button6

    OK Cancel.

    Marie rosine

    // DialogSimpleButton.jsx
    // http://forums.adobe.com/thread/1327372?tstart=0
    // how to add buttons in script, which on click run different codes?
    
    // regards pixxxelschubser
    
    function SimpleDialog() {
    
    var w = new Window('dialog', '');
    this.windowRef = w;
    w.orientation = "column";
    
    btn1 = w.add('button',undefined,'Button 1');
    btn2 = w.add('button',undefined,'Button 2');
    btn3 = w.add('button',undefined,'Button 3');
    btn4 = w.add('button',undefined,'Button 4');
    btnOK = w.add('button',undefined,'OK');
    btnCancel = w.add('button',undefined,'Cancel');
    
    btn1.onClick = function() {alert("Button 1");};
    btn2.onClick = function() {alert("Button 2");};
    btn3.onClick = function() {alert("Button 3");};
    btn4.onClick = function() {alert("Button 4");};
    
    defaultElement = btnOK;
    cancelElement = btnCancel;
    btnOK.active = true;
    
    btnOK.onClick = function() {
        stuff = "your stuff";
        w.close();
        }
    
    w.show();
    }
    
    var stuff = null;
    SimpleDialog ();
    if (stuff) alert(stuff);
    
  • How do you remove all THE Java code of Vista before a Java reinstall.

    I have (Microsoft Security Essentials) has recently detected viruses in my tree of Java.  While I think that the problem was managed by MSE, I still want to remove completely all my machine Java code prior to a relocation of a pure set of Java.  It seems that Java would not provide you with a removal of Java (like MaAfee) do this, and the only code available tool is the standard Microsoft required uninstall code.  I want to remove all traces of Java code, and I don't usually use (do not trust) of 3rd party code that you find on the Internet, but if anyone has good experience with one of them, I would like to know.

    Even if the uninstaller code seemed to work, I found a lot of leftover Java files and folders left behind.  For example, there is a Sun\Java\... tree located in the AppData\LocalLow directory.  I would like to know why this code was left and whether it is safe to just delete.  I don't like just big clear code because there may be a registry entry based on the code, which could cause another problem to me (even if the Java code is supposed to be uninstalled).

    In the meantime, as an alternative, I renamed all Java directories that I can find.  Roughly the same and about as good what remove Java directories, isn't.

    And finally, I have a Vista 64-bit system, so which implementation of Java should I download/use. When I uninstalled the Java code, there is an updated version of 32-bit (Version 6, 26 update in the list of programs), as well as an outdated version of 64-bit (Version 6, Update 13 instead of Version 6, update 26) in the list programs.  These work together.   I shouldn't have to download both, I have to, or I should.

    And one last comment.  I've been running for a few days now without any Java installed on my machine and do not encounter problems or errors due to the absence of the code.  I know that many of the Applications that I use, use javascript, which I think is a little different that the standard Java code.  So what's the problem here.  Have I just not met a Java-application or is there more parts left Java in the machine I don't know or Windows excuting part of the said code.  I need to Java, I don't.

    roninrr

    Yes, Java is bad enough to remove all its files when uninstall you it but things left to do no harm. You can remove them if you want.

    There is no relationship between Java and Javascript, with the exception of confusion as well as the fact that both languages look a bit.

    You can probably do without Java. Java has become one of the biggest goals for malware recently. I uninstalled Java of my computers a while back I found I was taking more time now know to use it. I was only access a Web site regularly used and find a substitute for it. I could leave uninstalled, and see if you hit what he really needs.

    If you decide to reinstall, the 32-bit version is all you need unless you use Internet Explorer 64-bit (which you shouldn't).

  • How to add items to the list of object field

    I have an array of strings as shown below.

    String s [] = {'a', 'b', 'b', 'b', 'b', 'b', "a"};

    I want these elements in the field of the Objecat list with output picking up the elements of a String array.

    in other words, the ListField should only contains ' has 'and' b ' as list items

    How to add the elements of a String array to the listfiled without repeating the

    Chain of elements of the array.

    someone help me please...

    concerning

    use a vector as the data structure for the objectlistfield. Check contains() before adding the item in the vector.

  • Smartphones blackBerry how to add footers to the BlackBerry Curve 8530?

    I ask in fact on behalf of my employer.  I wanted to know how to add or create footers using the BlackBerry Curve 8530 series.

    Thank you in advance for your help!

    Sorry for the long wait...

    I called Customer Service of VW and told me the right way to add footers page/signature of emails after three calls:

    Since the BB home screen, select "configure".

    Go to "e-mail settings."

    Click on "Log In".

    Choose a specific e-mail address/account you want to add/edit the signature field (aka adding footers)

    Select 'change '.

    Scroll to the "Signature" field and type in everything what you need/want.

    And don't forget to SAVE!

    Voila!

  • How to add text to the position of the cursor in HTMLEditor in JavaFX

    I know how to add new button to HTMLEditor and I want all of my action button to paste text at the current position of the cursor.


    //HTMLEditor html;
    //String IMAGE_URL = "http://...";
    Node node = html.lookup(".top-toolbar");
    if (node instanceof ToolBar) {
      
    ToolBar bar = (ToolBar) node;
      
    ImageView graphic = new ImageView(new Image(IMAGE_URL, 32, 32, true, true));
      
    Button myButton = new Button("", graphic);
      bar
    .getItems().add(myButton);
      myButton
    .setOnAction(new EventHandler<ActionEvent>() {
      
    @Override
      
    public void handle(ActionEvent arg0) {
      
    //needs code
      
    }
      
    });
    }

    Use the webkit API, so this isn't something you want to use in production since there is no guarantee that JavaFX will use webkit in the future. Really, the HTMLEditor should have an API editor that makes all of this transparent.

    You will need to import javafx.scene.web.WebView, com.sun.javafx.webkit.Accessor, and com.sun.webkit.WebPage;

                myButton.setOnAction(new EventHandler() {
                    @Override
                    public void handle(ActionEvent arg0) {
                        WebView webView = (WebView)htmlEditor.lookup("WebView");
                        WebPage webPage = Accessor.getPageFor(webView.getEngine());
                        webPage.executeCommand("insertText", " World Cup Soccer ");
                    }
                });
    

Maybe you are looking for