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
-- Preparation: Drop the index if it exists to ensure clean testing DROP INDEX idx_title ON film -- StCreate the 'film' table if it doesn't exist CREATE TABLE IF NOT EXISTS film ( id INT PRIMARY KEY, title VARCHAR(255), rating VARCHAR(10) ) -- -- Preparation: Drop the index if it exists to ensure clean testing DROP INDEX IF EXISTS idx_title ON film USE DB -- Preparation: Drop the index if it exists to ensure clean testing DROP INDEX idx_title ON film -- Preparation: Drop the index if it exists to ensure clean testing DROP INDEX idx_title ON film -- Preparation: Drop the index if it exists to ensure clean testing DROP INDEX IF EXISTS idx_title ON film -- Preparation: Drop the index if it exists to ensure clean testing DROP INDEX IF EXISTS idx_title ON film

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

Copy Clear