Home > Database > Mysql Tutorial > body text

How to wrap new lines in mysql?

little bottle
Release: 2020-09-15 15:44:16
Original
17910 people have browsed it

In the process of mysql operation, do you have such doubts? Don't know how to do line breaks in mysql. In fact, line breaks can be easily achieved by entering the line break command statement in mysql.

How to wrap new lines in mysql?

Newline statement:

UPDATE 表名 SET  字段= REPLACE(REPLACE(字段, CHAR(10), ''), CHAR(13), '');
Copy after login

Note:

  • ##CHAR( 10): Line feed character

  • CHAR(13): Carriage return character

The above is the detailed content of How to wrap new lines in mysql?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!