SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
create table test ( html text ); insert into test values ('text before <nav>много разного текста включая разные html теги</nav> text after'), ('aaa<nav>aaa</nav>aaa'); select * from test; update test set html = replace( html, concat('[:en]', substr( html, locate('<nav>', html, 1) + 5, locate('</nav>', html, locate('<nav>', html, 1))-locate('<nav>', html, 1) - 5 ), '[:]'),'[:en][:]'); select * from test;

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear