Using operator add to add a string

Hi.
I have data in string
data length
001 3
009 3
010 3
0001 4
0012 4
00009 5
i need to add for example 001+005.
i use this query
select to_char((to_char('009') + to_char('001')),'099') from dual
but it return : 010
my problem is the length is not same. if i hard coded '099', i cannot use same query for length 4 and 5.
Please advice.
Message was edited by:
user22282

I don't understand either, something like this?
INFO/INFO_PROD> select a,b,lpad(a,b,'0') chara
  2  from (select 1 a,3 b from dual union
  3        select 9,3 from dual union
  4        select 8,5 from dual union
  5        select 10,6 from dual
  6        )
  7        ;
         A          B CHARA
         1          3 001
         8          5 00008
         9          3 009
        10          6 000010regards, martina

Similar Messages

  • How to add a string at the End of TLFTextField without loosing current text format!

    I have a TLFTextField that loads text from external text file.
    Then a function changes the format of some parts.
    Then as soon as I add a string at the end of my TLFTextField, All previous formatting is lost!
    I use this code to add string:
    myTLF.text += "." ;
    or
    myTLFText.text = myTLFText.text.concat(".");
    Should I use another method??

    pass the text through your formatting function again, or try appendText:
    myTLF.appendText(".") ;

  • Is it possible to add a string inside a textbox with a value of another textbox for Acrobat Forms?

    Is it possible to add a string inside a textbox with a value of another textbox?
    ex.
    Textbox1 = Happy
    Textbox2 = Sad
    Textbox3 = "I am Happy therefore I am not Sad"
    "I am (value of textbox1) therefore I am not ( value of textbox2)"

    Use this code as the custom calculation code of Textbox3:
    event.value = "I am " + getField("textbox1").value + " therefore I am not " + getField("textbox2").value;
    Notice that the field names are case-sensitive.

  • How can I add the string to JList

    I have one string " teletoppy" and I have Jlist which have 5 items in it.
    After I press submit I want teletoppy added to the list.
    How can I write the command?
    because I try by using command_list.add("teletoppy", comp);
    I don't know what component is?how can I add it in?.

    Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/list.html]How to Use Lists for a working example of how to do this. The "Hire" button adds the text from the text field to the JList.

  • Howto add a string to multiple files from the shell

    Hi,
    I want to add a line of text to several files.
    I can locate the files I want to add the text line to using this command: grep -lr "/bin/sh" .
    This generates the list of files I need to modify.
    Now, I want to add a string - LANG=he_IL - to all those files, AFTER the line #!/bin/sh (this line always comes first in every file).
    Can anyone suggest a simple bash script to do so?
    Thanks a lot,
    Fiod

    Read up on sed.
    End of line sign is '$'. So that would become:
    sed 's/$/LANG=he_IL/' files
    /edit
    Oh and to skip the first line there's a rule too, but you could also use something like:
    sed '\@#\!/bin/sh@!s@$@LANG=he_IL@' files
    please first test this code on an example in case I forgot something!
    Last edited by ibendiben (2009-01-23 11:49:13)

  • Can i add one string in bse64 string  ?

    Hello,
    I am developing a small paint program. I am converting image into base64 and then decode base64 to display image on canvas. It is working fine. Now I am getting problem during when i am adding one string manually to the encoded string like this:
    public String getImage(String s1){       
         byte abyte0[] = canvas.toByteArray(canvas.getBufferedImage());
         if((abyte0!= null))
               System.out.println(scheck); // this is extra string
            System.out.println(b.encode(abyte0)+scheck);
             return b.encode(abyte0)+scheck;
        return null;
    }After that i am saving this data to database. When i am displaying image(after decode). it gives me nullpointer exception. with Illegal base64 String. Please help and tell me how to add one string at the last of base64 string. And how to separate this string from it without effecting base64 string. Please help me.
    Thanks in advance.
    Manveer.

    Hi hood1,
    2 options:
    1) You can add many waveforms by combining them into one Array.
    2) Use the Waveforms tools, that give you many option for adding waveforms. one after the seconed or adding the Y array of a waveform to other Y array of second wave form, and so on...
    Hope it Helps...

  • I loaded iTunes on a new laptop. I copied and pasted my albums to a 4G stick and down loaded them to the new laptop. Placing them in, Libraries – Music – iTunes and than in Itunes used File – add file to library. So far so good. For what ever reason one o

    I loaded iTunes on a new laptop. I copied and pasted my albums to a 4G stick and down loaded them to the new laptop. Placing them in, Libraries – Music – iTunes and than in Itunes used File – add file to library. So far so good. For what ever reason one of the CDs would not load onto the stick. I got the orginal CD and loaded directly to Itunes. Now when I look in  Libraries – Music – iTunes it’s not there but it is in and plays in iTunes. What should I have done or should I be doing? Thanks.

    It's not a unique situation - happens all the time, smaller hard drives getting filled up.
    It's also easy to fix. I just moved my itunes content to a bigger hard drive.
    First I made a backup of the itunes database file - iTunes Library.itl. Just in case anything went wrong.
    Nothing did go wrong, but I'd have it in case anything DID go wrong. That file holds ratings, playcounts, Date Added, and other metadata.
    Second, in itunes change the preferences > advanced tab to tell itunes to put everything on G:
    Set the itunes folder location to something like G:Media or G:iTunes
    This will affect all FUTURE additions to itunes and not do anything to the existing locations.
    Make sure the checkbox for "Keep itunes organized" is NOT checked. I also left the "Copy files when adding" unchecked.
    Third, to move all the files to G: without itunes losing the paths, run the File > Library > Organize > Consolidate command. This will need to run a while, so be patient as it copies all the files to the new G: location. This does NOT delete the originals. You will have to do that.
    Fourth, make sure everything in itunes is OK and you can play stuff in your library. If you're really cautious you can run a script to check for missing/dead tracks.

  • I'm using a Mac.  I "upgraded" to LR5 from LR4.  I do not want to be a member of the "Creative Cloud".  I just want to use the software I purchased, specifically to upload to my SmugMug account.  Is there a way to use an add-on to do this?  Aperture and L

    I'm using a Mac.  I "upgraded" to LR5 from LR4.  I do not want to be a member of the "Creative Cloud".  I just want to use the software I purchased, specifically to upload to my SmugMug account.  Is there a way to use an add-on to do this?  Aperture and LR4 were easy but I'm finding it impossible without subscribing to CC.

    Sorry, maybe I don't understand, but why do you feel compelled to subscribe to CC if you already have a permanent Lightroom 5 licence?
    For the SmugMug plugin, a simple Google search ("smugmug lightroom plugin") gives this link to download the plugin:  http://help.smugmug.com/customer/portal/articles/121321
    Another way is to click the button "Find more services online..." in the the Publish Service section of Lightroom, and to search for SmugMug in the Adobe Add-ons portal; you will find a link to the latest plugin: https://creative.adobe.com/addons/products/1755

  • OK since midday today firefox 3.6.24 apparently no longer executes javascript on ebay. Can't use the "add to watch list" buttons or the enlarge photo buttons. It says 'javascript at the bottom of the firefox window but nothing happens.

    just as I wrote above.. ebay loads and functions. I can bid and view auctions but trying to either use the "add to watch list" or "add to wish list" buttons or to switch between different posted photos of an item just gives me javascript:; at the bottom left of my screen but clicking the button has no effect.I'm still running 10.4.11 with the last java download.. is this an ebay change to a newer java version not supported by my os or is it a firefox error..oh and one more thing each page seems to have become 4 times longer..ie there is a huge empty space as I scroll down the page before I hit the bottom.Only appears to do this on ebay..haven't found any other sites showing similar errors and everything works fine on my imac running firefox 4 under 10.5

    Craig Stenton: at 12:13:04
    but I can't install windows! During the install I am asked for the product key and it tells me that it is not valid and so I can't proceed.
    Craig Stenton: at 12:14:16
    I can't use the usual methods of activation because I cannot get an activation code. I can't use the activation wizard. I can't call the number because it requires an activation code.
    Hi,
    I'm a bit confused with this paragraph, as you said Vista already install on your computer, why did you say Windows can't be installed?
    According to your description with your problem, it is Product edition and key are not match. Firstly of all, we must make sure the system you installed on your computer was
    Windows Vista Business, not matter 32 or 64 bit.
    Note: you can check current system edtion at System Properties.
    After that, you can try to input your product key and activate your system for test.
    If problem still presists, it would be better to provide the activation error message.
    Roger Lu
    TechNet Community Support

  • We use an add-on in one of our online solutions and we've identified a security vulnerability. The issue has been addressed in our latest add-ons and we would like to know how we may blocklist our previous player through a firefox update?

    We use an add-on in one of our online solutions and we've identified a security vulnerability. The issue has been addressed in our latest add-ons and we would like to know how we may blocklist our previous player through a firefox update?

    You can file a bug report to do that request.
    http://developer.mozilla.org/en/docs/Bug_writing_guidelines

  • I can't use the add attachment options in mail

    Hi all,
    Im having a little bit of trouble here. Everything was working fine. but all of a sudden I can't add attachments to an email in Mac mail by using the add attachments shortcut button or by file add attachments.
    All that happens is after aproximatley 30 secs the button or 'file' is depressed and i can continue using mail but no attachments window ever appears.
    Its not the end of the world as i can still drag and drop files into the email but it can become a pain when having to scroll through the network to find the attachments i require in finder.
    Please Help.
    Ben

    Please follow these instructions to delete the Mail "sandbox" folder.
    Back up all data.
    Triple-click the line below to select it, then copy it to the Clipboard (command-C):
    ~/Library/Containers/com.apple.mail
    Quit Mail.
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar. Paste (command-V) into the box that opens, then press return. A Finder window should open with a folder named "com.apple.mail" selected. If it does, move the selected folder — not just its contents — to the Desktop. Leave the Finder window open for now.
    Relaunch Mail and test. If the problem is resolved, you'll have to recreate some of your Mail settings. You can then delete the folder you moved and close the Finder window. If you still have the problem, quit Mail again and put the folder back where it was, overwriting the one that may have been created in its place. Post your results.
    Caution: If you change any of the contents of the sandbox, but leave the folder itself in place, Mail may crash or not launch at all. Deleting the whole sandbox will cause it to be rebuilt automatically.

  • Exception calling "Update" with "0" argument(s): "To add an item to a document library, use SPFileCollection.Add()"

    Hi i am trying to add a new item and update existing field value in a document library with powershell 
    but i receive below error message.
    PS C:\Users\spfarm> C:\Scripts\add.ps1
    Exception calling "Update" with "0" argument(s): "To add an item to a document
    library, use SPFileCollection.Add()"
    At C:\Scripts\add.ps1:24 char:16
    + $newItem.Update <<<< ()
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : DotNetMethodException
    #Add SharePoint PowerShell Snapin which adds SharePoint specific cmdlets
    Add-PSSnapin Microsoft.SharePoint.PowerShell -EA SilentlyContinue
    #Variables that we are going to use for list editing
    $webURL = "http://tspmcwfe:89"
    $listName = "test"
    #Get the SPWeb object and save it to a variable
    $web = Get-SPWeb $webURL
    #Get the SPList object to retrieve the "Demo List"
    $list = $web.Lists[$listName]
    #Create a new item
    $newItem = $list.Items.Add()
    #Add properties to this list item
    $newItem["Title"] = "My second item!"
    $newItem["Info"] = "s15"
    #Update the object so it gets saved to the list
    $newItem.Update()
    $web.Dispose()
    adil

    Hi Adil,
    Document Library is different from a normal list. The document library contains files inside it. You need to update the code to add a document to the library. Then you can get hold of the List Item represented by that file and update its properties. Here
    is an example:
    $WebURL = "http://aissp2013/sites/TestSite"
    $DocLibName = "Docs" 
    $FilePath = "c:\blogs.txt" 
    # Get a variable that points to the folder 
    $Web = Get-SPWeb $WebURL 
    $List = $Web.GetFolder($DocLibName) 
    $Files = $List.Files
    # Get just the name of the file from the whole path 
    $FileName = $FilePath.Substring($FilePath.LastIndexOf("\")+1)
    # Load the file into a variable 
    $File= Get-ChildItem $FilePath
    # Upload it to SharePoint 
    $spFile = $Files.Add($DocLibName +"/" + $FileName,$File.OpenRead(),$false) 
    $item = $spFile.Item
    $item["Title"] = "New Title"
    $item.Update()
    $web.Dispose()
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • How can I add a hyperlink to a PDF with OSX 10.9? The "Help" article says to use the "add link" feature under "edit." It's not there.

    How can I add a hyperlink to a PDF with OSX 10.9? The "Help" article says to use the "add link" feature under "edit." It's not there. I could add links w/ the previous OS. Time sensitive project.

    Which application are you using?
    Clinton

  • When I try to send a page by e-mail using the add-on e-mail feature, I get this message: " You don't appear to be authorized to access this service. +__+ " and cannot send the e-mail

    I cannot send e-mails of pages I wish to send using the add-this tab e-mail icon. I was able to use this all this time. But this week, I started to get this message: "You don't appear to be authorized to access this service +__+" . How do I rectify this problem?

    I cannot send e-mails of pages I wish to send using the add-this tab e-mail icon. I was able to use this all this time. But this week, I started to get this message: "You don't appear to be authorized to access this service +__+" . How do I rectify this problem?

  • With using any version of iTunes, whenever I import songs into my library using the "add to library" function, iTunes adds those songs in songs' alphabetical order. This is pretty annoying since it does not preserve the logical track number or album.

    With using any version of iTunes, whenever I import songs into my library using the "add to library" function, iTunes adds those songs in songs' alphabetical order. This is pretty annoying since it does not preserve the logical track number or even the album sort order (for example when adding 2 albums stored in a unique folder). Anyone has any ideas ? Been stumped for a while....!!!

    hi i had the same problem today when i updated my itunes to latest version. however, i have just found my songs in the 'itunes media' folder. this was accessed through 'my music'  then keep clicking through until you find itunes media and all my library songs were in there and i then just added these files to my library and all were restored however, i have lost all my playlists but at least my 700 songs are back. very dissapointed with apple that they have let this happen with their latest update, the previous version was miles better than this one . hope you find them. stevo

Maybe you are looking for

  • How to Load Characterisitcs using LSMW in ECC 6.0? Very urgent requirement

    Hi, We are facing problems while loading characteristics data using Batch input method RCCTBI01. In Create Batch input session step it is throwing the error as Transaction CT04 not supported. Can anybody help me!!! Thanks in advance

  • Configuring a AP 1552EU-A-K9 in layer 2 mode thru a WLC 5508 running 7.6.130.0

    We have an outdoor AP that we want to bridge to another one that is also outside and connect to our WLC 5508. I see a lot of data for connecting via a layer 3 network, but nothing yet on a layer 2 network (which we run). Can anyone point me to some d

  • Incorrect Address Mapping

    Hi: There is an problem with the field mapping from quick address into CRM. Sometimes the house name is mapped onto the second line of the address instead of the first line of the address. Need your immediate inputs. Regards,

  • Need help in iteration problem

    i have a question that requires to use iteration ("for" repetition ) and it inquires to enter each day's cost for a whole week and then calculate and display the total week's cost. can anyone help me with this? cause i've tried everything i know.

  • Bw ides installation steps

    Hi expert, how to install bw 3.x ides on oracle. can anyboby send me the complete installation steps on following mail id. [email protected] thanx in advance