SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
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_CONTAINS(jdoc, "[4, 6, 7]");

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear