Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize | PHPize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
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 AI support!

Copy Clear