Linkbeet

Jump to content.

Suchen und Ersetzen in MySQL

Suchen und Ersetzen in einer MySQL-Datenbank gelingt wie folgt:

UPDATE tabellenname SET feldname =
replace(feldname, suchstring, ersatzstring);

Beispiel:

UPDATE news SET message =
replace(message, ‘altes Wort’, ‘neues Wort’);

0 comments

Einen Kommentar hinterlassen

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



Read more

«
»