SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
-- INIT database CREATE TABLE Product ( s_id int auto_increment primary key, s_name varchar(500), s_amt int, s_birthday date ); insert into Product(s_name,s_amt,s_birthday) values('Mah',2000,'2004-5-16'), ('Mia',1500,'2024-2-17'), ('Mpa',3000,'2003-1-1'), ('Mjh',5000,'2004-6-18'); select * from Product; alter table Product modify column s_amt decimal(6,2); alter table Product modify s_name varchar(5); alter table Product drop column s_birthday; select * from Product; drop table Product; select * from Product

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear