Query

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

CREATE DATABASE kelas_java;

CREATE TABLE employees (


id INT NOT NULL AUTO_INCREMENT,
fullname CHAR(30) NOT NULL,
gender CHAR(6) NOT NULL,
position VANCHAR (25) NOT NULL,
salary INT(10) NOT NULL,
PRIMARY KEY (id)
)
INSERT INTO employees (id, fullname, gender, position ,salary) VALUES ('001',
'Lux', 'Female', 'Director', '4500');
INSERT INTO employees (id, fullname, gender, position ,salary) VALUES ('002',
'Boy', 'Male', 'Operation Manager', '3500');
INSERT INTO employees (id, fullname, gender, position ,salary) VALUES ('003',
'Graven', 'Male', 'Finance Manager', '3500');
INSERT INTO employees (id, fullname, gender, position ,salary) VALUES ('004',
'Kai', 'Male', 'Staff', '2000');
INSERT INTO employees (id, fullname, gender, position ,salary) VALUES ('004',
'Anna', 'Female', 'Staff', '2000');

You might also like