-
Notifications
You must be signed in to change notification settings - Fork 6
/
sample-database.sql
32 lines (26 loc) · 951 Bytes
/
sample-database.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
--
-- Current Database: `ijdb`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `ijdb` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
USE `ijdb`;
--
-- Table structure for table `joke`
--
DROP TABLE IF EXISTS `joke`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `joke` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`text` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `joke`
--
LOCK TABLES `joke` WRITE;
/*!40000 ALTER TABLE `joke` DISABLE KEYS */;
INSERT INTO `joke` VALUES (1,'!false - it\'s funny because it\'s true'),
(2,'Why was the empty array locked outside? It didn\'t have any keys');
/*!40000 ALTER TABLE `joke` ENABLE KEYS */;
UNLOCK TABLES;