Delete extra spaces in table column

hi how can i delete extra spaces in table column for example if table column value is store as 'ÄAAAAA ' how can i delete that extra space
this is the column i what to delete extra spaces
select SUBTYPES  from tablesubtype;am in
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Solaris: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
Edited by: adf0994 on 2012/12/03 11:30 AM
Edited by: adf0994 on 2012/12/03 11:42 AM

UPDATE tablesubtype
   SET SUBTYPES  = TRIM (SUBTYPES);Doing RTRIM alone will not suffice coz it'll only remove Right Spaces and NOT Left ones.
I guess, in your case doing a TRIM will be more beneficial to be safe and prevent any left spaces in future.
For intermediate spaces... try this.
UPDATE tablesubtype
   SET SUBTYPES  = REGEXP_REPLACE (SUBTYPES, ' ', '');Hope this Helps,
Ranit B.
Edited by: ranit B on Dec 3, 2012 2:33 PM
-- added regexp

Similar Messages

  • Eliminate extra space in table cell

    I cannot figure out what is causing the appearance of extra
    space beneath the thumbnail images on the following webpage (this
    space is in between the image and the cellborder):
    http://www.canchair.com/new_web_product_detail.asp?ProductID=499&ProductFamily=5&ProductFa milySub=
    OR THE RELEVANT CODE CAN BE VIEWED AS FOLLOWS:
    HTML CODE FOR THE TABLE CELL CONTAINING THE EXTRA SPACE:
    <a href= "javascript:;" class="small_img" >
    <td class="small_img" onmouseover="showBigImage(
    'imagescript.asp?path=<%= images("url_img")
    %>&width=250','<%= images("url_img") %>','<%=
    images("alt_img") %>' )"> <img
    src="imagescript.asp?path=<%= images("url_img")
    %>&amp;width=36" border="0" /> </td>
    </a>
    small_img STYLE SHEET CODE:
    .small_img {
    margin: 0;
    border: 1px solid #A5ACB2;
    cursor: hand;
    padding: 0;
    .small_img:hover td{
    margin: 0;
    border: 1px solid #000000;
    cursor: hand
    .small_img:hover{
    color: red; /* Dummy definition to overcome IE bug */
    }

    View the page in Firefox, view source, and Go To Line will do
    the trick (in
    Firefox).
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "aonefun" <[email protected]> wrote in
    message
    news:gbp286$5vg$[email protected]..
    >I was asking how to know which line of my code the errors
    specified on
    >
    http://validator.w3.org/ are
    referring to. I assume the line numbering on
    > dw
    > would not correspond as a webpage strips the server side
    code.
    >

  • Equal space for Table column Gutter?

    Hi All,
    I want to make the tables column between space equally by using the Scripting (InDesign CS5.5 Windows).  I'm stuggled in creating the algorithm to this task.  Is any one already completed this type of automation means please share your thoughts, or please suggest the algorithm you are using.?
    Thanks in Advance.
    Regards,
    Imagine.

    In the above snapshot In between columns are having the uneven spaces.  I need to give the even space between columns based on the maximum characters on that columns.
    Do you mean the equivalent of Table > Distribute Columns Evenly?
    No.

  • Deleting extra characters

    Is there a way to delete extra characters in a StringBuffer after the first occurance? For example, if I wanted to delete all comma's after the first occurance in a string, this seems to work:
              if(custName.lastIndexOf(",") > custName.indexOf(","))
                   custName.replace(' ,' , ' ');
    But how would you do this in a StringBuffer? I have tried using something like this:
    int numComma = 0;
    for(int i = 0; i < letter.length(); i++)
    if(letter.charAt(begin) == ',')
         numComma ++;
    if( letter.charAt(begin) == ',' && numComma > 1)
         letter = letter.deleteCharAt(begin);
    but it deletes all commas, including the first occurrance..Would you use the same approach to delete extra spaces between words?[if there is more than one space] Any suggestions would be appreciated..

    if you use java.util.stringtokenizer you can tokenize by your delimiter.

  • Deletion of extra space in ALV report output

    Hi Experts,
    I have one issue where i have to delete the extra space in the output of  ALV report.
    Please let me know the possible way... Its very urgent.
    Thanks in advance
    Siri

    Hi Siri,
    Try these following steps in your report...... i think, it will lead you to solve your problem.
    1. Give output length of alv column as 10.
    2. OUTPUTLEN is there in Field catalogue
    3. "gt_layout TYPE lvc_s_layo" -  use this one field col_opt
    Reward if useful.
    Regards,
    Harish

  • Extra space between paragraphs: is there a way to delete that?

    I am importing text from a word document to format in InDesign. It' 150 pages of a book that I'll layout.
    I made a mistake when writing the book with word by creating a space between every paragraph, which I now want to get rid of.
    Is there a way to automate this with InDesign? Is there some way to automatically delete the extra space betwen my paragraphs and add an indent instead?

    Hi craigatadobe12345
    You can do it by by seaching "^p^p" in find and replace "^p^t" with Find/Replace window. This will remove the extra line and set a tab to indent the text.
    Please find below the screenshot of the same. Hope it helps...
    Best,
    Anil Yadav

  • Deleting blank spaces in internal table

    Hi Gurus,
    I want to delete the empty spaces of a particular field in internal table.I used condense and shift statements but didnt work because the work area value is already condensed.I am not sure why the internal table field is having so much of empty spaces to its left.It's a character field with length 60.
    Please suggest.

    Hi,
    This is the rellevant code   
    LOOP AT IT_HIER INTO WFL_HIER.
            WFL_FINAL-NODEID = WFL_HIER-NID.
            WFL_FINAL-IOBJNM = WFL_HIER-IOBJ.
            WFL_FINAL-NODENAME = WFL_HIER-NNAME.
            WFL_FINAL-PID = WFL_HIER-PID.
            condense wfl_hier-desc.
            WFL_FINAL-DESCRIPTION = WFL_HIER-DESC.
            SHIFT WFL_FINAL-DESCRIPTION LEFT DELETING LEADING SPACE.
            APPEND WFL_FINAL TO E_T_DATA.
            CLEAR WFL_FINAL.
            CLEAR: WFL_HIER,OUT.
          ENDLOOP.
    The problem is not with the work area.
    Say if I have a value apple in the work area wa, (wa - 'apple').
    It doesnt have any leading sapces to the left.
    But when I am appending it to the internal table it gets posted at the last say like this (it -  '                                       apple'.
    It occupies the last five characters.
    Not sure how to resolve this.

  • Column contain space in table.

    Hi I have one table and one column itself contain space not the column data.
    Whenever i select that column it gives me error invalid identifier.
    I tried to rename the column also but it gives me same error invalid identifier.
    Please help
    Thanks in advance!
    Nick

    Can you please show what you are doing and how Oracle responds? It's hard to guess what you are trying to do based on the information given.
    Don't forget to use \ tags.
    For example:
    \Your code here\will display as:Your code here                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Deleting Space - Internal Table

    Hi All,
    I wish to know how to delete the leading / trailing spaces in <b>Internal Table's</b> field & bolding the field name in Report Output.
    Ex: In report output - when i output BSID-WRBTR via an Internal table how to delete the blank spaces.
    I appreciate ur time.
    Regards
    Tina

    hi Tina,
       Use <b>Condense</b> Statement
    i.e,
    <b>The CONDENSE statement deletes redundant spaces from a string:</b>
    CONDENSE <c> [NO-GAPS].
    This statement removes any leading blanks in the field <c> and replaces other sequences of blanks by exactly one blank. The result is a left-justified sequence of words, each separated by one blank. If the addition NO-GAPS is specified, all blanks are removed.
    DATA: STRING(25) VALUE ' one two three four',
    LEN TYPE I.
    LEN = STRLEN( STRING ).
    WRITE: STRING, '!'.
    WRITE: / 'Length: ', LEN.
    CONDENSE STRING.
    LEN = STRLEN( STRING ).
    WRITE: STRING, '!'.
    WRITE: / 'Length: ', LEN.
    CONDENSE STRING NO-GAPS.
    LEN = STRLEN( STRING ).
    WRITE: STRING, '!'.
    WRITE: / 'Length: ', LEN.
    Output:
    one two three four !
    Length:           25
    one two three four !
    Length:           18
    onetwothreefour !
    Length:           15
    Note that the total length of the field STRING remains unchanged, but that the deleted blanks appear again on the right.
    Regards,
    Santosh

  • [JS][CS2]How to distribute table column space evenly?

    Script gurus help.
    Is it possible to snap the table columns to the longest entry then the remaining space be distributed to each column evenly?

    Yes, it is. Both column snapping and distributing space have been dealt with here in the past on a number of occasions. Searching the forum should turn up several useful approaches.
    Peter

  • How to add leading spaces to af:table column

    Hi,
    I'd like to display leading spaces in af:outputText located in table column. Value property is bound to backing bean property, where I add custom leading text.
    However, if I add , the & nbsp; text "& nbsp;" is displayed, not rendered by the browser. Any ideas?
    Regards
    Jernej
    Message was edited by:
    Jernej Kase
    Message was edited by:
    Jernej Kase

    Hi,
    since you didn't mention how you solved it, here is the approach i would have taken
    - use skinning to add padding. This way you don't have to mess with the display data
    Frank

  • Trouble with format of files exported from pages as .doc - when opened on a pc they have extra spaces and pages breaks inserted after each line?  Can be manually deleted, but defeats sharing purpose. advice?

    Hi all, I have trouble with the format of files exported by email as .doc from pages - when opened in MS word on a PC or other device, they have extra spaces and pages inserted after each line - can be deleted manually, but defeats sharing purpose.  Any advice?  Not the most sophisticated user.

    Got it. I tried booting with MOD_AUTOLOAD set to yes, and it was working fine. Looks like I needed to specify some more modules in my list.

  • Why is there a thin dark line between two of my three cover images that wasn't there before?  When I delete the images, you can tell that there is extra space between the first two image boxes.

    Getting ready to purchase my first book, I looked over everything once more and noticed that there is now a thin gray line between the first two of my three cover images.  I believe this may have happened when I switched out the left image.  When I delete the images, you can see an extra space between the center and left image boxes.  How can I fix this without starting over?

    What size book? Are you previewing this way -
    Before ordering your book preview it using this method - http://support.apple.com/kb/HT1040 - and save the resulting PDF for reference - the delivered book will match it.
    LN

  • Issue with 2D Barcode Datamatrix unwanted extra spaces/newline

    Hi All,
    We are facing an issue with data matrix 2D barcode in the label.(It's urgent)
    Below is the data we are using in 2D datamatrix with quality ECC200 .
    and also we are using hex characters to seperate the data i.e. '_1D' -gs '_1E' -rs '_04' -eot and '_20'- for space
    ^FO1380,1879^BY4^BXR,6,200^FH^FD
    [>_1E06_1DF01001P_1D1JUN888472136000031155_1DV0015468200_1D16K80003931_1D6D20140220095_1D2L14/D44/KOD44_1D7Q10023KG_1DB0004SCH_1
    DF02010I_1DP_201S0_20959_20263_20A_1D4LSK_1D7Q120PC_1D7Q1012358_1E_04^FS
    As you see in the image below ,we are not providing any extra space after the character 263  and  new line after A .i.e. for value P_201S0_20959_20263_20A
    still its taking extra spaces and goes on new line when scanned with TSB generator.
    Can anyone please provide the solution to avoid this spaces and new line coming in the scanned copy below :

    i dont know the exact reason but i know this happens..
    practically what we did was we added a blank field in our final internal table as first field. we named the field as : '_________' (Some underscores) . so that in excel it wont look like any field.
    and passed nothing to it in each line...
    and after getting the excel we can delete the first column.

  • XML Publisher showing extra spaces

    We are building a huge report using XML publisher , After building a custom report using (XML Publisher & Microsoft Document2007) , the requirement was to Show/Hide some Layouts like Table of data and Total Column depending on flag values,
    The solution for the above requirement was to use C (Conditional Region), which caused the following unwanted output:
    - Some Empty Pages (When using C before a layout table, and EC after the layout table)
    - Some vertical spaces between rows (when using C before Row and EC after the row)
    So in case the table has no data the page is still displayed which is causing to print additional empty pages.

    Try using <?if@inlines: condition?> instead of just using an <?if:?> condition and give it a try. Also ensure that there are no extra spaces in the RTF.
    Thanks,
    Bipuser

Maybe you are looking for

  • Using RichOutputText value in a java class

    Hi to everybody. I'm using Jdeveloper 11g and I'm developing an application that shows a tree in a jsp page. The java class that implements tree component need to receive a value written in a RichOutputText in the same Jsp page. Is it possible to do

  • Messages in inbound queue in status-RUNNING and it is too slow

    Hi Experts, We have a issue there are tons of messages in inbound queue in status-RUNNING and it is too slow!, hence there are more messages getting in the queue every minute. This is Production enviorment. We have priority queues QIN is waiting stat

  • R/3 table for a datasource?

    Hello, how to know the corresponding r/3 table for a business content datasource? (if i need to check the data for the same on the r/3 side) regards, Message was edited by: Abhijit Bhalerao

  • Ways to connect MS SQL server to the Oracle server

    Dear Experts, Can you let me know the ways to connect MS SQL server to the Oracle server. Thanks, Suresh.

  • Always get 'Following error' and 'motor off (axis is killed)'

    Hi everyone, I have the following system: PCI-7330 UMI-7764 four P7000 series drivers four Nema 23 stepper motors, each with an encoder In max, I can operate each moter fine while in open-loop mode, but as soon as I try to operate any of the motors i