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 t1 (jdoc JSON); INSERT INTO t1 VALUES('[1, 2]'); INSERT INTO t1 VALUES('[1, 3]'); INSERT INTO t1 VALUES('[1, 4]'); INSERT INTO t1 VALUES('[1, 5, 4]'); INSERT INTO t1 VALUES('[1, 6]'); INSERT INTO t1 VALUES('[1, 7]'); INSERT INTO t1 VALUES('[1, 8]'); INSERT INTO t1 VALUES('[1, 9]'); SELECT * FROM t1 WHERE JSON_OVERLAPS(jdoc, "[4, 6, 7]");

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

Copy Clear