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
SET allow_experimental_object_type = 1; CREATE TABLE events ( timestamp DateTime64 DEFAULT current_timestamp(), payload JSON ) ENGINE = MergeTree() ORDER BY timestamp; INSERT INTO events FORMAT JSONEachRow [{"payload":{"message":"hello","number":1}}, {"payload":{"message":"hello","number":2}}]; SELECT * FROM events;

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

Copy Clear