I have a problem removing a few unwanted characters in a MySql database as too large. Is there access to the script to remove this character?
Example of a record with several characters: -
[]No. 11, Persiaran Bukit [] Satu&[]Taman @Sri %Nibong
use the REPLACE function.
REPLACE
UPDATE tablename SET ColName = REPLACE(REPLACE(REPLACE(Colname, '&', ''), '@', ''), '%', '')
I suggest here to prepare a table containing all possible unwanted characters, and then process them in a single select request using the replace function.
Source: https://habr.com/ru/post/1441757/More articles:Executing a function at a specific time - c #Will dblinq be used for SQLite in checking application storage in the Windows Store? - sqliteWhen the mysql WHERE clause is empty, return all lines - phpStream reading over 10 million rows from a table in SQL Server - c #Struts 2 skips validation when loading the first page - validationskip error: could not find identifier for pass.com.xxx.xxxx - iphonereplace file contents during builidng war (maven2) - javaCut lines with CGAL - c ++Java Annotation, which is valid only for classes that implement a specific interface? - javaproblems with jqueryui dialog when increasing size of iOS / iphone / ipad - javascriptAll Articles