forked from if-itb/IF3110-01-Simple-Blog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimpleblog.sql
More file actions
73 lines (58 loc) · 2.09 KB
/
simpleblog.sql
File metadata and controls
73 lines (58 loc) · 2.09 KB
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
-- phpMyAdmin SQL Dump
-- version 4.1.6
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Oct 14, 2014 at 03:06 PM
-- Server version: 5.6.16
-- PHP Version: 5.5.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `simpleblog`
--
-- --------------------------------------------------------
--
-- Table structure for table `comment`
--
CREATE TABLE IF NOT EXISTS `comment` (
`post_id` int(4) NOT NULL,
`comment_id` int(4) NOT NULL AUTO_INCREMENT,
`nama` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`tanggal` date NOT NULL,
`komen` text NOT NULL,
PRIMARY KEY (`comment_id`),
KEY `post_id` (`post_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
--
-- Dumping data for table `comment`
--
INSERT INTO `comment` (`post_id`, `comment_id`, `nama`, `email`, `tanggal`, `komen`) VALUES
(4, 7, 'Anon', 'non@gmail.com', '0000-00-00', 'Mau gratisan, dong, Qaqa~'),
(4, 8, 'Anon Juga', 'nonjug@gmail.com', '0000-00-00', 'Udah baca dongs, Kak.'),
(5, 9, 'Anon Lagi', 'al@gmail.com', '0000-00-00', 'Kya!');
-- --------------------------------------------------------
--
-- Table structure for table `post`
--
CREATE TABLE IF NOT EXISTS `post` (
`post_id` int(4) NOT NULL AUTO_INCREMENT,
`judul` varchar(255) NOT NULL,
`tanggal` date NOT NULL,
`konten` text NOT NULL,
PRIMARY KEY (`post_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
--
-- Dumping data for table `post`
--
INSERT INTO `post` (`post_id`, `judul`, `tanggal`, `konten`) VALUES
(4, 'Bintang Mika', '2014-10-13', 'Belum baca novel keren ini? Ya ampun....'),
(5, 'Buku Terbaru', '2014-10-14', 'Siap-siap, ya, sama novel terbaru J. :)');
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;