-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.sql
76 lines (61 loc) · 1.89 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
DROP TABLE IF EXISTS `pictures`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pictures` (
`IDpictures` int(11) NOT NULL AUTO_INCREMENT,
`pictures` blob(256),
PRIMARY KEY (`IDpictures`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
INSERT INTO `pictures` VALUES (1,'');
DELIMITER |
CREATE PROCEDURE showFrame(
IN IDpictures int(11)
)
BEGIN
SELECT pictures
FROM pictures
WHERE IDpictures = IDpictures;
END |
DELIMITER ;
DROP TABLE IF EXISTS `map`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `map` (
`IDmap` int(11) NOT NULL AUTO_INCREMENT,
`map` varchar(2048),
PRIMARY KEY (`IDmap`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
INSERT INTO `map` VALUES (1,'40
20
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
HXXXX X XXXOOOXXXXXXXXXXXOXXXXXXXXXXXXXH
HXXOOXXXXXXXXX XXXXXXXXXXXXOXOXXXX XXXH
HXXXXXXOXXXXXXXXXXXOOXOXXXXXXXXXXX XXXH
HX XXXVXXX XXXOXXXXXXXXXVXXXXXXXXXXXXH
HXXXXOXXXXXX XXXXXXXXXXXXXXXXXXXOXXXXXH
HXXXXXXXOOXXXXXXOOOXXXXXX XXXXXOXXXXXXXH
HXXXX X XXXXXXXXXXXXXXXXXXXXOOXX XXOXXH
HHHHHHHHHHHHXXXOXXXXOXXXXXXXXXXXXXXOOXXH
HXXXXXVOXX XXXXXXXXXXXXXXXXXXOXXXXXXOXXH
HXXXXXOXXXXXXXXXXXOXXXXOXXXXXVOXXXXXXXXH
HHHHHHHHXXXXX XXXXXXOXXXXXXXXXXXXXXXXXH
HXXXXXXOOOXOOXXXXXXXXXXXXXXXXXHHHHHHHHHH
HXXOOOXXXX XXXXXXXOOXVXXXXXXOXXHHHHHHHHH
HXXXXXXOXXXOOXVXXOOXXXXXXXOXXOXOOXXXXXXH
HOXXVXXXXXOOXXXXXOXXXXXXXXXX XXXXXXXXXXH
HOXXXXXXXHHHHHHHHHHHXXXXXOOXXOOXXXXXXXDH
HXXXOXXXXXXXOXXXVXXXXOOXXXXXXHXOXXXXXXXH
HXXXXXXOXXXXXXXXXXXXXXXXXXXXXHVXXO XXXH
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH');
DELIMITER |
CREATE PROCEDURE showMaps(
IN IDmap int(11)
)
BEGIN
SELECT map
FROM map
WHERE IDmap = IDmap;
END |
DELIMITER ;