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 dle_post ( id int NOT NULL AUTO_INCREMENT, title varchar(255) NULL, xfields varchar(255) NULL, PRIMARY KEY (id) ); INSERT INTO dle_post (xfields) VALUES ('key1|value1||key|123||key3|value3'); SELECT * FROM `dle_post` WHERE CONCAT('|', `xfields`, '|') LIKE '%|key|123|%'

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

Copy Clear