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 amor ( id_amor INT AUTO_INCREMENT PRIMARY KEY NOT NULL, nome VARCHAR(50) NOT NULL, idade INT NOT NULL, obs VARCHAR(50) ); INSERT INTO amor (nome, idade, obs) VALUES ('Fernanda Lima da Cruz', 15, 'Crente'); insert into amor (nome, idade, obs) values('Vinicius Ferreira', 15, 'Namorado da crente'); select * from amor; alter table amor add endereco varchar(50) not null; insert into amor (nome, idade, obs, endereco) values('mel', 15, 'safada', 'predio de baixo'); select * from amor; alter table amor drop column endereco; alter table amor rename column nome to nome_dos_meus_amores

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

Copy Clear