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 test(id integer, type integer, code text); insert into test values (1,1,'a'), (2,1,'b'), (3,2,'c'), (4,1,'d'); select array_agg(t) from test t group by type; --row_to_json

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

Copy Clear