-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.sql
33 lines (27 loc) · 928 Bytes
/
script.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
CREATE DATABASE cvdatabase;
USE cvdatabase;
CREATE TABLE personal(
id MEDIUMINT NOT NULL AUTO_INCREMENT,
full_name VARCHAR(255) NOT NULL,
location VARCHAR(255),
PRIMARY KEY (id)
);
CREATE TABLE work(
id MEDIUMINT NOT NULL AUTO_INCREMENT,
place VARCHAR(255) NOT NULL,
comment VARCHAR(255) NOT NULL,
from_year VARCHAR(255) NOT NULL,
to_year VARCHAR(255),
PRIMARY KEY (id)
);
CREATE TABLE education(
id MEDIUMINT NOT NULL AUTO_INCREMENT,
place VARCHAR(255) NOT NULL,
comment VARCHAR(255) NOT NULL,
from_year VARCHAR(255) NOT NULL,
to_year VARCHAR(255),
PRIMARY KEY (id)
);
INSERT INTO personal (full_name, location) VALUES ('Elliot Alderson', 'New York City');
INSERT INTO work (place, comment, from_year, to_year) VALUES ('Allsafe Cybersecurity','Cybersecurity Engineer','2010','2014');
INSERT INTO education (place, comment, from_year, to_year) VALUES ('Selftaught','H4ck3r','2005','2010');