SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
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 ChatGPT!

Copy Clear