MySQL Forums
Forum List  »  German

Re: Wie kann ich in MySql mit Replace ein Semikolon innerhalb eines Strings ersetzen?
Posted by: Asterios Paulsen
Date: April 17, 2020 05:09PM

Hi,

Danke für deine Nachfrage.

UPDATE myTable SET post_content = REPLACE( post_content, '<script type="text/javascript">eval(String.fromCharCode( ));</script>',' ');

Nach dieser Vorlage:
UPDATE 'TABLE_NAME' SET 'FIELD_NAME' = REPLACE('FIELD_NAME', 'falsch kodierter String', 'richtig kodierter String');

Das funktionierte immer für alle Strings, ohne Semikolon.

LG Asterios

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.