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 t ( id int, val int ); insert into t values (1, 1), (2, 2), (3, 3), (0, 1), (0, 2), (0, 3); select * from t; alter table t drop column id; alter table t add column id int primary key auto_increment first; select * from t;

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

Copy Clear