简体   繁体   中英

How to remove special characters from sql database

How do I remove special characters ALL AT ONCE from a WHOLE DATABASE in sql through phpMyAdmin? I imported a bunch of inventory items into an online invoicing system, and found out that select items with descriptions containing special characters such as (") would cause items not to save correctly.

How would I run a sql command on that table to remove the special characters from all rows in the database at once?

try this

update mytable
set FieldName = REPLACE(FieldName,'/','')

This looks to be what your looking for.

How can I use mySQL replace() to replace strings in multiple records?

Doing mass updates like this can be dangerous thou.. so I would suggest backing up this table before working on it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM