Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize Online / PHPize Online  /  SQLtest Online

A A A
Login    Share code      Blog   FAQ

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

Copy Format Clear
create table Products (CategoryID int, ProductName varchar(255)) insert into Products select 1, 'Milk' union select 1, 'Cream' union select 1, 'Yogurt' SELECT STRING_AGG(ProductName,',') as list_of_products FROM Products WHERE (CategoryID = 1)

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

Copy Clear