Avatar 🍥

Coinidea's Blog

Life is random

  1. Home
  2. Archives
  3. Search
  4. Resume
  5. Links
    1. Dark Mode
Web Development

[MySQL] Removing Carriage Returns and Line Feeds from Fields

Dec 31, 2016
1 minute read
中文
1
update table set item=replace(replace(item, char(10), ''), char(13), '') where condition;
  • table: table name
  • item: field name
  • condition: query condition
MySQL
Licensed under CC BY-NC-SA 4.0

Related content

[LNMP]Memory Optimization

[MySQL]Automatic MySQL Backup

[MySQL] is marked as crashed and should be repaired

[PHP] Large-Scale Data Import and Export with ThinkPHP, PHP, and MySQL

[SAE] SAE MySQL Cross-Application Authorization

© 2020 - 2026 Coinidea's Blog
京ICP备15014655号