2025-07-15 13:54:40 +07:00
|
|
|
CREATE DATABASE IF NOT EXISTS inventory;
|
|
|
|
|
|
|
|
|
|
CREATE TABLE items (
|
2025-07-15 13:27:55 +07:00
|
|
|
id int(11) not null auto_increment primary key,
|
|
|
|
|
name varchar(36) not null,
|
2025-07-15 13:54:40 +07:00
|
|
|
price int(10) not null,
|
|
|
|
|
qty int(11) not null
|
2025-07-15 13:27:55 +07:00
|
|
|
);
|
|
|
|
|
|
2025-07-15 13:54:40 +07:00
|
|
|
INSERT INTO items VALUES
|
|
|
|
|
(DEFAULT, 'Kopi', 200, 10),
|
|
|
|
|
(DEFAULT, 'Teh', 200, 20),
|
|
|
|
|
(DEFAULT, 'Susu', 300, 30);
|