How to remove a character from new line in a column

Hi all...

I have a column in a table in which some data contains a newline character to their last.
I need to remove the line break characters.

for example... are data
"abcd
'
(Notice the end of the quote)... I need to get data under... "abcd".

PLSS help me...
Thanks in advance...

Hello:

select replace(column_name,CHR(13),'') from table_name;

If it does not work, try Chr (10) instead of Chr (13).

Saad,

Tags: Database

Similar Questions

  • How to remove the character from new line at the beginning of the attachment?

    Hi all

    I tried to attach a .dat file that is generated to an external source and send it as an attachment by e-mail with UTL_SMTP, all things work, but the .dat file that is attached in email contains a new line that is Chr (10) on the start line and the content of the file is written to the second line from. This is a part of the code that deals with reading/writing of the attachment of mail to send.

    Someone can help me on this point, is something to be changed in this code?



    UTL_SMTP.write_data (c,
    'Object ' | ': ' || P_SUBJECT | UTL_TCP. CRLF);
    UTL_SMTP.write_data (c,
    "MIME-Version: 1.0 ' |" UTL_TCP. CRLF. -Use the MIME e-mail standard
    ' Content-Type: multipart/mixed;' | UTL_TCP. CRLF.
    ""boundary ="- SECBOUND" ' | UTL_TCP. CRLF.
    UTL_TCP. CRLF);
    UTL_SMTP.write_data (c,
    '- SECBOUND' | UTL_TCP. CRLF.
    ' Content-Type: text/plain; "|| UTL_TCP. CRLF.
    ' Content-Transfer_Encoding: 7 bit' | UTL_TCP. CRLF.
    UTL_TCP. CRLF);
    UTL_SMTP.write_data (c, UTL_TCP.crlf | l_text);
    UTL_SMTP.write_data (c, UTL_TCP.crlf);
    UTL_SMTP.write_data (c, UTL_TCP.crlf);
    -----
    UTL_SMTP.write_data (c,
    '- SECBOUND' | UTL_TCP. CRLF.
    ' Content-Type: text/plain; "|| UTL_TCP. CRLF.
    "name="/inetpub/wwwroot/Novation_Merge/FS_Extract.dat"' |"
    UTL_TCP. CRLF.

    ' Content-Transfer_Encoding: 8 bit' | UTL_TCP. CRLF.
    ' Content-Disposition: attachment;' | UTL_TCP. CRLF. "filename =" ' | p_description |
    TO_CHAR (SYSDATE, 'DD-MON-YYYY') | ".dat" ' | "
    UTL_TCP. CRLF. UTL_TCP. CRLF. UTL_TCP. CRLF);


    --------------------------------------------------------------------------------------

    BEGIN

    l_filehandle: = UTL_FILE.fopen ("c:\temp",
    "FS_Extract.dat,"
    « r »,
    32767);
    LOOP
    UTL_FILE. GET_LINE (l_filehandle, l_buffer, 32767);

    UTL_SMTP.write_data (c, l_buffer |) UTL_TCP. CRLF);

    END LOOP;
    EXCEPTION
    WHILE OTHERS THEN
    NULL;
    END;

    UTL_FILE.fclose (l_filehandle);



    UTL_SMTP.write_data (c, '- SECBOUND-');
    -----
    UTL_SMTP.close_data (c);
    UTL_SMTP. Quit (c);
    EXCEPTION
    WHEN UTL_SMTP.transient_error OR UTL_SMTP.permanent_error THEN
    BEGIN
    UTL_SMTP. Quit (c);
    EXCEPTION
    WHEN UTL_SMTP.transient_error OR UTL_SMTP.permanent_error THEN
    NULL;
    -When the SMTP server is down or unavailable, we do not have
    -a connection to the server. Triggers the call to quit one
    -except that we cannot ignore.
    END;
    RAISE_APPLICATION_ERROR (-20000,
    "Failed to send messages because of the following error: ' |"
    SQLERRM);
    END;



    Thank you

    Amol-

    I remember correctly, a single empty line serves as a separator between the header Mime and Mime body.

    Copy the following code...

    UTL_SMTP.write_data(c,
      '-------SECBOUND' || UTL_TCP.crlf ||
      'Content-Type: text/plain;' || UTL_TCP.crlf ||
      ' name="/inetpub/wwwroot/Novation_Merge/FS_Extract.dat"' ||
      UTL_TCP.crlf ||
      'Content-Transfer_Encoding: 8bit' || UTL_TCP.crlf ||
      'Content-Disposition: attachment;' ||UTL_TCP.crlf || ' filename="' || p_description ||
      TO_CHAR(SYSDATE, 'DD-MON-YYYY') || '.dat"' ||
      UTL_TCP.crlf || UTL_TCP.crlf ||UTL_TCP.crlf);  
    

    .. generates 2 blank lines after the Mime header.

    Delete the last CRLF and see if this fits the Bill.

  • ADF: how to insert the character of new line in the column of VO?

    Hello world

    IM using Jdev 11 G.
    I have a VO with 5 columns appear on the page of the ADF. (VO a total 8 columns)
    column 1 is the combination of 3 columns. I concatenated 3 columns and add the new line character after each column Chr (13).
    VO query works very well as a toad. the columnn displays each column value concatenated after a newline character, but the same query does not work in the ADF.
    The column that is the concatenation of the 3 columns and should display with the new line character does not display the new line character its just concatenation of the 3 values and display on the page.

    Wat could be the solution for this in the ADF?

    Thank you.

    Column does not have the property to escape. It is part of the output text.

    Something like

                        
                            
                        
    

    Arun-

  • How to insert the character of new line in text raise_application_error process PLSQL?

    Hello

    I have a message raise_application_error in my PLSQL code that appears in the notification area of the APEX page when triggered.  I would like to put a carrage back to specific points in the message.  I tried the concatenations of Chr (10) and adding "< br >". Neither work.  Any suggestions?  It seems that the notification formatting removes HTML.

    Thanks in advance

    PaulP

    Thanks for your suggestions.  I found the quick and easy solution.

    Rather than the use of RAISE_APPLICATION_ERROR (-20001, 'Message...')

    APEX_ERROR. () ADD_ERROR

    p_message in varchar2,

    p_additional_info in varchar2 default null,

    p_display_location in varchar2);

    See

    http://docs.Oracle.com/CD/E37097_01/doc/doc.42/e35127/apex_error.htm#CABDJBGJ

    APEX_ERROR. ADD_ERROR renders the HTML code in the p_message then RAISE_APPLICATION_ERROR than don't.

    Thank you Lakshmi and fac586

    PaulP

  • How to remove the newline from the query output?

    Hello

    How to remove the newline from the query output?
    have tried to replace select (column_name, Chr (10), ' ') from table_name.

    Published by: GreenHorn 11 Sep, 2008 12:53 AM

    Please consider, that windows uses a sequence of chr13 | Chr (10) Unix uses only a single character CHR (10).
    The new line characters may depend on the operating system.

    You might consider with:

    Replace (replace (column_name, Chr (13) |)) CHR (10), ' '), CHR (10),' ')

    Hartmut

    Published by: hartmutm on 11.09.2008 01:32

  • How to remove a city from the weather app in IOS 9.2.1?

    I have an IPhone6S that I bought recently and am running IOS 9.2.1. I can't understand how to remove a city from the weather app. I tried to go to settings, where there is a list of all the applications on my phone except the weather app, so no help there. Any body can help me with this?

    You must tap on the small set of lines in the lower right to get list view. Then you can find the city that you want to delete, drag to the left to see the button Delete.

    See you soon,.

    GB

  • How to remove an item from my desk top which I no longer use

    How to remove an item from my counter top who no longer need. I have windows vista home premium and internet exployer 9

    Hi elsie,

    Right-click on the shortcut, the program, or folder, then click on remove.  That's all.  If this does not work, try to use one of the following free products to remove the file/folder/shortcut: Unlocker to: http://www.softpedia.com/get/System/System-Miscellaneous/Unlocker.shtml or file Assassin http://www.malwarebytes.org/fileassassin.php these programs often work when the functions of removing normal do not work correctly.

    If it still does not work, try a clean boot (Vista and W7) http://support.microsoft.com/kb/929135. If you delete the file, then the problem was that there was a conflict or it cannot be deleted because it is run.  Once don't forget to reset your system back to the normal state, as described in the procedures. If the problem occurs in clean mode then just restore the system to normal and reboot - this solution will not work. If you are using XP, see http://support.microsoft.com/kb/310353 and http://support.microsoft.com/kb/316434.

    If this does not work, then start safe mode and try to delete the component of office from there (assuming it to be displayed).  If this does not work, you will need to log in as an administrator and try to delete the item in Windows Explorer in the C:\Users\\Desktop folder for this user and perhaps also any user originally installed the software (perhaps the administrator account).  It may be necessary to do both clean or Safe Mode boot mode (and using the extraordinary remove programs mentioned above as well).

    I believe one of the above will work (and hope the answer is one of the simplest at the top rather than the more complicated to those who follow).

    If you want to remove the underlying program that applies an executable or shortcut icon, go to Control Panel / programs and features.  Find the program is no longer you want, right-click on it and select delete or uninstall or delete (all that appears) and that should also remove the program and probably/possibly the icon at the same time.  Be careful here if - because if you upgrade the program, remove the program related to the icon or folder, if he got somehow placed on the desktop instead of Program Files (unless completely separate program updated as shown in programs and features - so you see both an old and a new version) could cause problems with the new program.  In essence, don't forget when you delete what you really want to delete and it removes this and nothing else.  I recommend the creation of a system restore point before you do.

    I hope this helps.

    Good luck!

  • How to query start a new line in the column?

    How to query start a new line in the column?

    Exam

    SELECT ID, username | host name, details of xxx;

    on the 2 column, I need result below:

    Username ID | hostname in detail
    1 user1 xxxxxx
    host1
    2 user2 xxxxxx
    host2

    Kind regards
    Suradech

    Something like that?

    SQL> WITH tbl AS (SELECT 1 id,'user1' uname,'xxx' dtl,'host1' hname FROM DUAL UNION ALL
      2               SELECT 2 id,'user2' uname,'yyy' dtl,'host2' hname FROM DUAL UNION ALL
      3               SELECT 3 id,'user3' uname,'zzz' dtl,'host3' hname FROM DUAL
      4               )
      5  SELECT id,uname||dtl||chr(10)||hname FROM tbl;
    
            ID UNAME||DTL||CH
    ---------- --------------
             1 user1xxx
               host1
    
             2 user2yyy
               host2
    
             3 user3zzz
               host3
    
  • 2 How to remove an element from the tree and the database block tree?

    Hello

    2 How to remove an element from the tree and the database block tree?

    Kind regards

    Abdetu...

    The problem is caused by not sending forms is not a VALIDATION of the database because he thinks that there is no changes to save.

    Forms does know that changes to the data block, he does not know the changes made by the PLSQL INSERT, UPDATE, DELETE calls and procedure.

    Try to remove the line to block, rather than using a DELETION like that...

    go_block ('INSP_EQUIPMENT_TYPE');if form_success then   do_key ('DELETE_RECORD');end if;
    
    
    

    If you wish to continue using your original DELETE instead of my change above code, you can use different techniques to force forms to issue the COMMIT to the database, including this one...

            DELETE ...        FORMS_DDL ('COMMIT');
    

    Be careful... This will be the VALIDATION of the database, but the changes to the data block will not be sent to the database!

    I posted a few other ways to issue a VALIDATION of forms here
    www.seeristic.com/Forum_Posts/Forms_COMMIT.txt

  • How to remove a Word from the default dictionary of firefox?

    How to remove a Word from the default dictionary of firefox?
    If I wanted to remove the word 'dog' or 'and' for example

    There may be a range of reasons for wanting to do this, including the deletion of the words you use rarely as similar to other common spellings used words for example. "minute" and "Minuet", delete the words that you find personally offensive, or removing words that, because of linguistic or cultural background, you would not consider words at all.

    Note that I'm not asking how to remove my 'dictionary' words, words that I added myself.

    Hello

    I talked to a few people and I think I'm able to help you with this.

    There are two dictionary files, the default that comes with your version of Firefox and personal 'custom' that you create yourself with phrases and words.

    If you want to change the personal;

    1. Copy Subject: support and paste into the address bar.
    2. Next to the profile folder, click the marked File Show
    3. Find the file persdict.dat. Rename a text file, open, modify, re save it as persdict.dat and replace.

    If you want to change the default dictionary, it could be more of a problem and a lot more technique to do. I would recommend that you look at the problem differently and consider filtering of pages based on inappropriate content using Add-ons such as ProCon Latte Content Filter.

    I hope this helps, but if not, please come back here and we can look at another solution for you.

  • How to remove a folder from photo?

    How to remove a folder from photo?

    Google translation

    How to remove a file photo?

    Show the sidebar (menu display == > display the sidebar) and right-click on the folder and select Delete folder

    LN

  • How to remove "Skype available" from the top of the notification page?

    How to remove "Skype available" from the top of the notification page - useless promotion!

    Hello!

    Disable the Skype status under Notification settings in Skype.

    All best
    Siim

  • How to remove a library from iMovie 10?

    How to remove a library from iMovie 10? It seems impossible from iMovie. Do I have to remove the library in the Finder?

    Yes just remove you it with the Finder.

    Geoff.

  • How to remove a book from Mac or iPhone?

    How to remove a book from Mac or iPhone?

    Are what version of iBooks you on Mac?

    I read a bunch of discussions on trying to delete apps and books from iTunes (where books used to be), and the responses dealing with the last iTunes and iBooks basically say the same thing: can't delete anything. At least, you can't delete the old sense of deleting the file completely. Now when you 'delete' something, you're really just hide the view.

    I just tried to remove a book from the last iBooks (in El Capitan on my iMac) and the fine print in the dialog box has said very clearly that I take away the book of view, but it would still be redownloadable of the cloud. (I hope that cloud of it's Apple, not mine.) I want to manage what is in my cloud, and I don't want that it is cluttered with things that I "deleted".)

    In theory, I don't see Apple. You can just save space on a device, but be able to find the book later. But this isn't the case with me. When I delete something, I want to TAKE forever. Case in point, the book that I just deleted was one in iOS 8.3. Why I ever would want to get that now that I am using iOS 9?

    Apple seriously needs to rethink its approach to this issue. Maybe needing a second choice to confirm if you're trying to hide something or remove the cloud, or really, really want you permanently gone. But Apple is not choice. Never ever going to be I guess.

    Rob

  • How to remove unused files from my account site live hotmail?

    original title: unused files

    How to remove unused files from my account site live hotmail?

    The question you have posted is bound using Windows Live (hotmail) and would be better suited to the Windows Live Help Solution . Please visit this link to find a community that will provide the support you want.

Maybe you are looking for