Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
M1888
lottokone
Commits
bdabffbf
Commit
bdabffbf
authored
Apr 22, 2019
by
M1888
Browse files
sql
parent
396b9976
Changes
1
Hide whitespace changes
Inline
Side-by-side
Lottokone/Resources/create-lotto.sql
View file @
bdabffbf
...
...
@@ -16,11 +16,19 @@ CREATE TABLE IF NOT EXISTS Lottorivit (
);
-- Luodaan vakiorivit
INSERT
INTO
Lottorivit
(
id
,
n1
,
n2
,
n3
,
n4
,
n5
,
n6
,
n7
)
VALUES
-- Suomen yleisin lottorivi on 3 9 15 21 27 33 39
(
1
,
3
,
9
,
15
,
21
,
27
,
33
,
39
),
(
2
,
1
,
2
,
3
,
4
,
5
,
6
,
7
),
(
3
,
5
,
10
,
15
,
20
,
25
,
30
),
(
4
,
10
,
15
,
20
,
25
,
30
,
35
),
(
5
,
15
,
20
,
25
,
30
,
35
,
40
);
-- loput saa pelaaja npytell itse
INSERT
INTO
Lottorivit
(
id
)
VALUES
(
1
),
(
2
),
(
3
),
(
4
),
(
5
),
(
6
),
(
7
),
(
8
),
(
9
),
(
10
),
(
11
),
(
12
),
(
13
),
(
14
),
(
15
);
(
6
),
(
7
),
(
8
),
(
9
),
(
10
),
(
11
),
(
12
),
(
13
),
(
14
),
(
15
);
-- Jotain dataa scoreboardillekin
INSERT
INTO
Scoreboard
(
Pvm
,
Nimi
,
Saldo
)
VALUES
(
DATETIME
(),
'Teppo Testaja'
,
-
42000000
);
\ No newline at end of file
(
DATETIME
(),
'Taina Testaaja'
,
-
42000000
),
(
DATE
(
'now'
,
'-5 day'
),
'Teppo Testaaja'
,
-
65625205
);
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment