Help in removing Space & Character

Hi,
I have a query where I need to remove the space & the character after this space in the query. Here is the query and the sample data. I am using Oracle 11g db
select replace(my_col, chr(10), chr(32))test from tableA;
ID       TEST
1        121 1 
2         69 1
3        23678 0
Desired Output
ID       TEST
1        121
2         69
3        23678
Can someone give me an idea on how this solve this
Thanks

Unless this post is due to a glitch: DO NOT DOUBLE POST
https://forums.oracle.com/thread/2577671

Similar Messages

  • Remove space character

    I have a string. I want to replace the first occured space character after a valid character in comma character and the following space character I want to remove them.
    ex: "a b c d e" => "a,b,c,d,e"
    the string method replace(char, char) cannot do replace(' ', '')
    can somebody help me?
    thank you.

    import java.util.regex.*;
    class B  {
       public static void main(String[] args) {
         String INPUT = "a b c         d   e";
         String REGEX = "\\b\\s+\\b";
        Pattern p = Pattern.compile(REGEX);
        Matcher m = p.matcher(INPUT);
        StringBuffer sb = new StringBuffer();
        while(m.find()){
                 String REPLACE = ",";
                 m.appendReplacement(sb,REPLACE);
            m.appendTail(sb);
            System.out.println(sb.toString());
    }

  • Help :how to remove spaces in string

    could any body please help me in removing spaces from string suppose i have written vivek chhabra and i want to remove spaces in this string and want a string vivekchhabra then how this could be done
    anybody help me please
    vivek

    String string = "Hello - This is a test!";
    String result = string.replaceAll(" ", "");
    System.out.println(result);This code results the following output:
    Hello-Thisisatest!

  • Array to spreadsheet string - remove space after delimiter

    Hi
    I created a Labview program to acquire a electrical signal and send it using TCP/IP.
    The image in attachment shows a piece of my code. The AQ subVI was created by me to accomplish the acquisition.
    However, the string that the "array to spreadsheet string" VI returns is something like this:
    -0.800781^ -1.030273^ -1.098633^ -0.942383^ -0.644531^ -0.209961^ 0.258789^ 0.712891^
    The VI is using the ^ character as a delimiter and it is converting commas to points as decimal separators.
    Now, what i would like to do is to remove the space character between the ^ character and the sample value, simply because that is what the receiver of the TCP/IP message wants.
    Can anybody help me?
    Thanks in advance
    Attachments:
    Array to spreadsheet.png ‏7 KB

    hi there
    remove the space between the ";" and "%" in your format specifier.
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • Embedded html font removes spaces!

    I have a dynamic html textField which has embedded fonts.
    When I provide it with html, it is displaying formatted text
    (italic, bold, underline, etc) incorrectly. it removes a space
    directly in front of the formatted word.
    e.g. unformatted:
    hello world
    formatted:
    hello
    World
    I have tried placing the space inside and outside the format
    tag and it makes no difference. Switching off the embed makes the
    field display correctly, however my client wants embedded,
    anti-aliased text.
    This seems to occur quite randomly so that some formatted
    text in the same textfield does not display incorrectly, while some
    does!
    There are font symbols for all my formatted fonts in the
    library.
    Can anyone shed some light?

    Is the SPACE character included as well?
    smon_ed wrote:
    > Thanks for your reply.
    >
    > I have included all my required fonts seperately in the
    library. So all my
    > fonts are embedded as symbols and available to my
    dynamic textfields, which I
    > believe does the same thing as placing embedded
    texfields on frame 1 of the
    > movie, which I tried and which did not help.
    >
    > This seems to occur not just for ordinary formatting,
    but also for underlining
    > and font changing, which is specific to TextFormat
    object formatting. I donlt
    > see this effect when not using TextFormat object and
    when not using htmlText.
    >
    > I am greatly, massively, annoyingly stuck on this and
    it's a really really
    > really important thing! Pretty much crucial to the whole
    application!!
    >
    Manno Bult
    http://www.aloft.nl
    [email protected]

  • Remove space in record

    HI all
    While executing DTP i am getting an error.INVALID CHARACTER.Its because of the space at the end of below mentioned records and also a space between * and (.
    '7.4*(9.92.53)
    '7.8*(204.25.1)
    I can go and correct in PSA.But for every load i need to do that.
    Is there any other alternative other than manually editing the record in PSA.
    PLease let me know,
    Thanks,
    Harika.

    See whether this blog helps.
    Invalid characters in SAP BW 3.x: Myths and Reality. Part 2.
    Also check below link.
    white space character issue in PSA
    Rama,
    If the problem with extra white space character add ALT 255 in RSKC character List and then load, you problem will be resolved.
    Regards,
    Hi
    The problem was resolved.
    I had added ALT+255 in RSKC, it works.
    Edited by: Mr. V on Oct 17, 2011 11:20 PM

  • How do I remove spaces or special characters within a cell for large amounts of data

    Is there any shortcut to remove spaces between words and numbers within a cell?
    Example:
    Current: .5 lt PET (6)
    Need: .5ltPET(6)
    Is there any shortcut to remove special characters between numbers within a cell?
    Example:
    Current: 0--000--000--0
    Need: 00000000

    Thanks Wayne.
    I have been away from using Numbers or Excel for 4-5 years so it is slowly coming back to me. I am get that I need to use the SUBSTITUTE function however I am having trouble with getting it to work.
    My Data
    ST PAULI 12/12 NR
    $27.16
    12oz NR(12)
    0--80660--95937--5
    ST PAULI 4/6/12 NR
    $28.76
    12oz NR(6)
    0--80660--95935--1
    ST PAULI DK 12/12 NR
    $0.00
    12oz NR(12)
    0--000--000--0
    ST PAULI DK 4/6/12 NR
    $28.76
    12oz NR(6)
    0--80660--95945--0
    ST PAULI N/A 4/6/12 NR
    $20.66
    12oz NR(6)
    0--80660--95955--9
    CAYMAN JACK 4/6/12 NR
    $29.12
    12oz NR(6)
    8--15829--01006--8
    CAYMAN JACK 8OZ/12PK CAN
    $23.18
    8oz CAN(12)
    8--15829--01061--7
    TGIF LIIT 10OZ FROZEN POUCH
    $35.80
    10oz POUCH(24)
    8--15829--01043--3
    TGIF MARGARITA 10OZ FROZEN POUCH
    $35.80
    10oz POUCH(24)
    8--15829--01047--1
    TGIF PINA COLADA 10OZ FROZEN POUCH
    $35.80
    10oz POUCH(24)
    8--15829--01045--7
    TGIF STRAWBERRY 10OZ FROZEN POUCH
    $35.80
    10oz POUCH(24)
    8--15829--01042--6
    BALLAST PT BIG EYE IPA 1/2 BBL
    $190.00
    KEG 1984oz (1/2 KEG)
    0--000--000--0
    BALLAST PT BIG EYE IPA 1/6 BBL
    $73.00
    KEG 660.1oz (1/6 KEG)
    0--000--000--0
    BALLAST PT BIG EYE IPA 4/6/12 CAN
    $33.00
    12oz CAN(6)
    6--72438--00052--7
    There are many more but this is enough to show you. I need to remove all spaces from the First and Third Columns. I need to remove all (--) from the fourth. Where do I put in the substitute function and what is source sting, existing-string, new-string, and occurrence.
    Thank You for your help.

  • How to remove a character in a file??

    I'm not getting how to remove a character from a file.Could anyone post a method to do this?Any help would be appreciable.

    Ohhh... and one more thing... unless you're really unlucky, a few "extranious trailing nulls" won't make a jot of difference to the size of the file on disk, each each file "fills" whole blocks anyway, which is 1K (I think) on both fister and *nix... unless of course we're talking "lots" of trailing-nulls, or lots-and-lots of files.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • White space character issue in PSA

    Hi All,
    I am loading master data full load from R3 to BW.The load is failing by giving the Error Message: "Too many error records - update terminated" and "Error 4 in the update"
    In details tab it is showing red entries as "Record 4857 :Value 'ATF-34143-TR1G         ' for characteristic 0VEND_MAT contains invalid character".
    This is due to extra white space character added to the value of the field.
    I can edit the record from PSA and reconstruct it.But as it is a full load, the error is repeating daily.
    Any body help me in resolving this issue permanently.
    (I think RSKC will not accept white space character )
    Thanks
    Rama

    Rama,
    Actually the system treats space as allowed character:
    Execute SE37, type in RSKC_ALLOWED_CHAR_GET.
    Double click in the statement
    E_DEFAULT_CHAR = G_C_ALLOWED_CHAR
    on the right part.
    You'll be brought to LRSKCTOP include.
    There you can see the default allowed chars:
    ' !"%&''()*+,-./:;<=>?_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    As you can see, there is a space as a first character.
    So, in order to help you try to answer questions I asked in my first post.
    Best regards,
    Eugene

  • Remove spaces and special characters from a form field

    Hi,
    I am tragically new to all of this, but am trying to create a form in Adobe Acrobat 9.  I am trying to use a Custom Format script to take inputs in a form field and automatically remove spaces and special characters (hyphens specifically).  For example, if a user inputs "RAN-99 06" I would like it to change to "RAN9906."  I found this script that will not let users input special characters
    if (!event.willCommit) {
        event.change = event.change.replace(/[\$#~%\*\*\^\-\(\)\+=\[\]\{\};\"\<\>\?\|\\\!]/g, "");
    And that's okay, but I can't figure out how to disallow spaces.  Also, the perference would be for a script to allow users to input the data as they like, but to clean it up after they leave the text field.
    Thanks in advance!

    From the description, I assume that the script is currently in the Keystroke event. In fact, that would be a most logical way to have it; simply ignore anything unwanted when entered.
    If you want to allow the user to enter anything, but "clean it up" when done, you would place your code in the Validate event. You will have to adjust your Regular Expression so that it works globally, but that's the whole difference. This will change the value.
    Note that you can also enter the code into the Format event. However, that would only change the visual representation of the value, but internally, the value would remain as entered.
    Hope this can help.
    Max Wyss.

  • How to find out how many space character in setence (string var) ?

    Dear all Master,
    I need Your help please.
    Topic:
    Script Editor.
    My System:
    -CUCM 7.0
    -UCCX 7.0 premium
    -Nuance recognizer 9.0
    Question:
    ABC = string var.
    ABC = "this is sample"
    2 space character in ABC string var.
    How to find out how many space character in ABC var ?
    Regards,
    Susanto

    Hi
    Create a int variable called whatever you want, then insert a SET step.
    Set the variable to the new int you created, and then paste this into the 'value' field:
    String[] myarray = teststring.split(" ");
    return myarray.length -1 ;
    Basically it splits the string into chunks each time it hits the " " character.
    This results in an array of the resulting chunks (i.e. words), which is one more than the number of spaces. -1 from that, and you have your int variable set to the number of spaces.
    Regards
    Aaron
    Please rate helpful posts...

  • Removing Spaces

    I've been using Desktop Manager for quite some time. I use the app all the time, probably 50 times a day. Even though I like Leopard, it screwed up my Desktop Manager app. I NEED to use ALL apps in ALL SPACES, not just one space per app, which is complete nonsense to me. I DEFINITELY DO NOT WORK that way. It stops/ ruins my creativity. Does anyone know how to remove Spaces or stop it's influence on other apps?

    Spaces had a verifiable problem of activating itself when the Enable Spaces box was unchecked, but that was mostly resolved in version 10.5.2.
    You can try this. After Enabling Spaces, select all the applications in the lower window and click on the minus button to remove them from the list.
    Uncheck the Enable Spaces and this may prevent Spaces from interfering.
    On the website Jane mentioned, it says version 0.5.4 of Desktop Manager (DM) is built for Intel/PPC and requires Mac OS 10.4 or later, but I don’t think it has been updated to work with Leopard (according to other users of DM).
    VersionTracker reports DM is designed for OS 10.3 to 10.4 PPC.
    However, as Kappy said, it is apparently not compatible with Leopard. On the DM developer’s website there is this warning:
    THIS SOFTWARE IS ALPHA QUALITY. USE AT YOUR OWN RISK. IT HAS ONLY BEEN TESTED WITH OS X VERSION 10.3 (PANTHER). ON OTHER VERSIONS YOUR MILAGE MAY VARY.
    I understand how you would prefer Spaces to be workspace-oriented rather than application-oriented and I have had several discussions with other users on this forum about it. They have logged a suggestion to Apple to provide an option to let the user select between the two different orientations of working with virtual desktops.
    You might search this forum for others who prefer the workspace-orientation virtual desktops and see if they have any work-arounds.
    Sorry, this probably doesn’t help much.

  • DW removes spaces surrounding updated library items

    I've filed a bug with Adobe on this issue, but I'm wondering
    if anyone else has received a fix for what I consider a
    showstopping bug. In a nutshell, whenever I update a library item,
    DW removes all spaces surrounding the updated library item, and
    will even remove spaces surrounding unrelated library items during
    the same operation.
    For example, let's say I have a simple library item that
    contains only the character "^". I insert that into a page to
    render like this: "| ^ |", using normal spaces in the page code to
    separate the three characters. If I then edit the library item to
    use the character "-" instead, all updated pages will lose the
    surrounding spaces: "|-|".
    I've developed hundreds of library items over the years, and
    can reproduce this over the last three versions of DW (8, MX 2004,
    MX), on multiple computers using new code or existing sites. If I
    edit a single library item, it corrupts hundreds of pages in a
    large site, and I have to use special searches to find and fix the
    error. I can't believe that noone else is affected by this problem,
    or isn't using library items to the extent that I do.
    I'd really like to see library item functionality repaired,
    and this is my last appeal before finding a replacement for DW, Are
    any DW developers monitoring this list?

    > bug is just as capable of affecting SSI
    I don't think so. At least, I have never seen it happen. Have
    you?
    > Library items are particularly aimed at professionals
    managing large
    > sites.
    I don't think so here, either. Why would one EVER choose a
    Library item
    over SSI? On a large site, you would upload hundreds if not
    thousands of
    files for each change with the former.
    > It is an opportunity to
    > create reusable code that can be managed and edited in
    one central
    > location, so
    > that changes to a single file can be replicated
    throughout the entire code
    > base.
    Precisely what SSI does, only better.
    > Yes, it may be more desirable to use a server side
    technology to control
    > these bits through the use of variables and includes,
    but I also build and
    > manage high performance web servers, and no dynamic
    language can even come
    > close to the speed of delivering static files,
    especially if you want to
    > withstand a slashdotting or other unusual burst of
    activity.
    This is true - since Library items are design-time tools, you
    take the
    bandwidth hit on the upload side of things rather than on the
    fetch side of
    things.
    > I'm hoping that someone at Adobe is monitoring this list
    They do not. If you need to communicate with them, you must
    contact them
    directly. But you have been told that Adobe is aware of the
    problem at
    least twice - is that not enough?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "jorey" <[email protected]> wrote in message
    news:[email protected]...
    > The examples I used are overly simplified to more
    clearly demonstrate the
    > problem. Using a server-side technology is not relevant
    to this issue.
    > This
    > bug is just as capable of affecting SSI, PHP, ASP, or
    any other code
    > edited and
    > managed with Dreamweaver.
    >
    > Library items are particularly aimed at professionals
    managing large
    > sites.
    > Who else would even be interested in such a feature? It
    is an opportunity
    > to
    > create reusable code that can be managed and edited in
    one central
    > location, so
    > that changes to a single file can be replicated
    throughout the entire code
    > base. To suggest that it is necessary to create slightly
    different
    > versions of
    > code snippets to suit the individual needs of each
    generated page utterly
    > defeats the purpose of library items.
    >
    > As for the uses of library items, sure, I'll use it to
    maintain large
    > blocks
    > of code, but it's also useful for little things that
    change on a regular
    > basis,
    > such as names of people in specific roles, addresses,
    phone numbers, email
    > addresses, URLs, dates and other things that might
    appear hundreds of
    > times
    > throughout a site in a variety of contexts. This bug has
    serious
    > repercussions,
    > because it is not limited to the item being updated. You
    could update a
    > large
    > block of code and have unpredictable changes occur
    elsewhere. This is
    > unacceptable, and may not be limited to library items,
    but may also affect
    > templates or any other site management function that
    relies on the same
    > routines.
    >
    > Yes, it may be more desirable to use a server side
    technology to control
    > these bits through the use of variables and includes,
    but I also build and
    > manage high performance web servers, and no dynamic
    language can even come
    > close to the speed of delivering static files,
    especially if you want to
    > withstand a slashdotting or other unusual burst of
    activity.
    >
    > But as I mentioned, the type of code or use of the
    library item is
    > irrelevant.
    > Dreamweaver as a programming editor has a serious bug.
    It's broken, and
    > needs
    > to be fixed. I'm hoping that someone at Adobe is
    monitoring this list and
    > will
    > understand that this is a problem that affects advanced
    users and whole
    > teams
    > who have made extensive and productive use of this
    feature before it was
    > broken.
    >

  • How to remove spaces

    Assignee: cf_supp Status: Open, In Progress, Reopened, Test Deployment Pending, Production Deployment Pending, Ready for QA, Bus Analysis, Ready for Development and Deployment Complete Sorted by: Created descending, then Key descending
    the above is the paragraph that i am displaying in table from query but i am not able to remove spaces in between , i tried with trim and also with replace functions.
    Any help in this
    Thanks in advance

    the above is the paragraph that i am displaying in table from query but
    i am not able to remove spaces in between , i tried with trim and also
    with replace functions.
    There's always the old trick of continually applying a replacement function until you're done. It just might be of help here. I assume you will want to stop when there is only a single space between the words.
    <!--- variable to simulate a paragraph containing arbitrary space characters --->
    <cfsavecontent variable="paragraph">
    Assignee: cf_supp Status: Open, In Progress,
               Reopened,             Test Deployment Pending,   Production
                Deployment Pending,    Ready for QA, Bus
         Analysis, Ready for Development and Deployment
    Complete Sorted by: Created descending,              then Key descending
    </cfsavecontent>
    <p>
    <strong>Paragraph before:</strong>
    <pre><cfoutput>#paragraph#</cfoutput></pre>
    </p>
    <!--- Replace whitespace characters like linefeed, carriage-return, tab, space, etc., with a single space --->
    <cfset paragraph = REreplace(paragraph,"[[:space:]]", " ", "all")>
    <cfloop condition="true">
        <cfset old_paragraph = paragraph>   
        <!--- Replace two adjoining spaces with a single space --->
        <cfset paragraph = replace(paragraph,"  ", " ", "all")>
        <!--- Continue till there is no more replacement --->
        <cfif compareNoCase(old_paragraph, paragraph) is 0>
        <cfbreak>
        </cfif>
    </cfloop>
    <p>
    <strong>Paragraph after:</strong>
    <pre><cfoutput>#paragraph#</cfoutput></pre>
    </p>

  • Sync Outlook 2003 / Nokia 6120 - space character i...

    Hi guys - I store my contact mobile phone #s in international format (ie +61 4xx xxxxxx) so they are accessable from overseas when I travel without having to edit.  Outlook 2003 seems to put a space character by default after the country code, so these appear as +61 4xxxxxxxx in Outlook.  When I sync my Nokia 6120 to Outlook this space then gets transferred across to the phone as the # for the contact.  When I receive anything from the contact (phone call, SMS etc), the number I have saved for them does not exactly match the number that comes through (either because of the extra space, or because it will come through in Australian format ie 04xx xxxxxx) and the contact does not get recognised by the phone, and simply appears as the #, not the contact name.  If I send an SMS first & this is replied to, it comes back correctly identified, but new messages etc from contacts are not identified.
    Is there any way to remove the space that Outlook seems to put after the country code by default?  And is there any way for the phone to recognise +61 4xxxxxxxx and +614xxxxxxxx and 04xxxxxxxx all as the same number for the same contact?

    maybe it can be accomplished using a macro or modifying this one
    http://www.tandasoft.com/software/outlook-nokia-pc-sync-fix/

Maybe you are looking for

  • Is it possible to change the colour of the bars in a chart on the iPad?

    I'm using keynote for iOS and I'm trying to pick the bar colour for my charts. I understand that the default settings will change the colour for each new series but I have a few charts all with a single series and I would like to change the colours a

  • Is there a way to reduce the backup frequency to iCloud

    I got a email from my ISP yesterday notifying me that I had used 14GB of my plan this month. As the new billing cycle only started this week i realised something was not right so i began to check my useage level for each day only tho find that it was

  • Problem Converting standby database from snapshot to physical

    Any help willl be greatly appreciated... I am trying to convert a standby database that is in "snapshot" mode back to "physical" standby and I am encountering problems in the process from the "DGMGRL" command line. Both instances are on the same phys

  • Getting weird quality problems in SD

    i am currently working on a project in SD 16:9 ion which every image and every title is outputing in poor qulaity. i have manipulated this stuff a dozen times and changed settings all round, but if i'm doing an sd project, i get this quality issue. t

  • How to use query method in bopf?

    following was the code written to return the key. CALL METHOD lr_srv_mgr->query      EXPORTING        iv_query_key            = zif_viv_trq_c=>sc_query-root-test_query *     it_filter_key           =        it_selection_parameters = lt_filter *     i