MySQL Forums
Forum List  »  German

Re: Wie kann ich in MySql mit Replace ein Semikolon innerhalb eines Strings ersetzen?
Posted by: Peter Brawley
Date: April 17, 2020 07:50PM

Nach ...

drop table if exists mytable;
create table mytable(post_content varchar(1024));
insert into mytable values('');

... das funktioniert ...

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

Options: ReplyQuote




Sorry, only registered users may post in this forum.

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.