chr(13) chr(10) carriage return line feed CR LF

chr(13) and chr(10) are the carriage return line feed CR LF characters, so to strip them out:

select replace(replace(m.long_notes,chr(10),' '),chr(13),' ') from mytable m;
Posted in Character sets
2 comments on “chr(13) chr(10) carriage return line feed CR LF
  1. Maxwell says:

    Just a question. Shouldn’t it be an SQL joke, not a SQL joke, as in sedinng out an SOS (famous Police song) not a SOS? Sorry to be pedantic but I revise the English of many Spanish University professors and I always tell them an SQL and was interested to see that you put a SQL. Thanks Danny

  2. That’s a shrewd answer to a tricky question

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>