SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
create table componentes( nome varchar(10) not null, quantidade int(100) not null, componente varchar(150) not null ); insert into componentes(nome, quantidade, componente) values ('U1', 1, 'Arduino Uno R3'), ('R1', 1, '220 Ω Resistor'), ('D1', 1, 'Vermelho Led'); Alter table componentes Add column Preco double; insert into componentes(Preco) values (30.50), (50.25), (23.50); select * from componentes; -- select quantidade * Preco from Componentes; -- select * from componentes; -- CREATE VIEW CustoEstoque AS SELECT Preco FROM componentes; -- select * from CustoEstoque
Stuck with a problem? Got Error? Ask ChatGPT!
Copy Clear