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 news ( utenteID smallint primary key auto_increment, description varchar(255) ); insert into news (description) values ('Вот такое производство яиц. Мы печем лучший Вишневый хлеб в стране.'), ('Вот такое производство булочек. Мы печем лучший Клубничный хлеб в стране.'), ('Вот такое производство помидор. Мы печем лучший Арбузный хлеб в стране.'), ('Вот такое производство яблук. Мы печем лучший Вишневый чай в стране.'); select * from news; update news set description = REGEXP_REPLACE( description, 'Мы печем лучший .+ хлеб в стране.', '' ) where description like '%Мы печем лучший % хлеб в стране.%'; select * from news;

Stuck with a problem? Got Error? Ask AI support!

Copy Clear