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 tbl (id int, home json); insert into tbl values (1, '{ "CML2_ARTICLE": "SP18-250", "CML2_BASE_UNIT": "шт", "MORE_PHOTO": "1328009", "BLOG_POST_ID": "138879", "CML2_TRAITS": "Товар (б/х)", "MINIMUM_PRICE_1": "2874.46", "MAXIMUM_PRICE_1": "2874.46" }'), (2, '{ "CML2_ARTICLE": "SP25-250", "CML2_BASE_UNIT": "шт", "MORE_PHOTO": "1328016", "BLOG_POST_ID": "137343", "CML2_TRAITS": "Товар (б/х)", "MINIMUM_PRICE_1": "3962.65", "MAXIMUM_PRICE_1": "3962.65" }') ; select * from tbl where json_contains(home, 'SP25-250', '$.CML2_ARTICLE');

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

Copy Clear