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 Car ( CarID INT AUTO_INCREMENT PRIMARY KEY, CarName VARCHAR(100) NOT NULL, Description TEXT, Category VARCHAR(50), Manufacturer VARCHAR(50), Price DECIMAL(10,2), SupplierID INT, CONSTRAINT FK_SupplierID FOREIGN KEY (SupplierID) REFERENCES Supplier(SupplierID) ON DELETE SET NULL

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

Copy Clear