SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
create table cliente( id int not null primary key auto_increment, nome varchar(10), email varchar(10) ); alter table cliente add cep char(9) not null; desc cliente; alter table cliente drop column email; desc cliente; alter table cliente MODIFY COLUMN nome varchar(50) not null; desc cliente; alter table cliente rename column nome to nomes; desc cliente; alter table cliente add cpf varchar(14); desc cliente; alter table cliente add CONSTRAINT cpf_uniq unique(cpf); desc cliente; alter table cliente MODIFY COLUMN cpf varchar(14) not null; desc cliente; alter table cliente drop CONSTRAINT cpf_uniq; desc cliente; alter table cliente rename to clientes; desc clientes; drop table clientes;

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear