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
DROP TABLE IF EXISTS Films; CREATE TABLE Films ( id INT PRIMARY KEY AUTO_INCREMENT, title VARCHAR(20), director VARCHAR(20) ); INSERT INTO Films (title, director) VALUES ('Toy Story 2', 'John Lasseter'), ('WALL-E', 'Andrew Stanton'), ('Ratatouille', 'Brad Bird'), ('Up', 'Pete Docter'), ('Brave', 'Brenda Chapman'), ('Monsters University', 'Dan Scanlon'), ('Cars 2', 'John Lasseter'), ('Finding Nemo', 'Andrew Stanton'), ('Toy Story', 'John Lasseter'), ('The Incredibles', 'Brad Bird'); SELECT title FROM Films ORDER BY RAND() LIMIT 5

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

Copy Clear