-
Notifications
You must be signed in to change notification settings - Fork 1
/
createTable.sql
50 lines (48 loc) · 949 Bytes
/
createTable.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
CREATE TABLE shipplotter
mmsi INT,
timestamp INT,
status INT,
type INT,
lat DECIMAL,
lon DECrrMAL,
speed DECIMAL,
course DECIMAL,
heading INT,
draft DECIMAL,
length INT,
beam INT,
name CHAR(20),
callsign, CHAR(7),
dest CHAR(20),
etaDate CHAR(5),
etaTime CHAR(5),
x1 CHAR(1),
x2 INT,
x3 INT,
x4 INT,
x5 INT,
PRIMARY KEY (mmsi, timestamp)
CREATE TABLE shipplotter
mmsi INTEGER,
timestamp INTEGER,
status INTEGER,
type INTEGER,
lat DECIMAL,
lon DECIMAL,
speed DECIMAL,
course DECIMAL,
heading INTEGER,
draft DECIMAL,
length INTEGER,
beam INTEGER,
name CHAR(20),
callsign, CHAR(7),
dest CHAR(20),
etaDate CHAR(5),
etaTime CHAR(5),
x1 CHAR(1),
x2 INTEGER,
x3 INTEGER,
x4 INTEGER,
x5 INTEGER,
PRIMARY KEY (mmsi, timestamp)