14 lines
328 B
SQL
14 lines
328 B
SQL
CREATE DATABASE IF NOT EXISTS inventory;
|
|
|
|
CREATE TABLE items (
|
|
id int(11) not null auto_increment primary key,
|
|
name varchar(36) not null,
|
|
price int(10) not null,
|
|
qty int(11) not null
|
|
);
|
|
|
|
INSERT INTO items VALUES
|
|
(DEFAULT, 'Kopi', 200, 10),
|
|
(DEFAULT, 'Teh', 200, 20),
|
|
(DEFAULT, 'Susu', 300, 30);
|