-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatabase.sql
41 lines (37 loc) · 1.05 KB
/
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
33
34
35
36
37
38
39
40
41
CREATE TABLE IF NOT EXISTS jspstudydb.MEMBERS (
EMAIL VARCHAR(30) NOT NULL PRIMARY KEY,
PW VARCHAR(20) NOT NULL,
NAME VARCHAR(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
CREATE TABLE IF NOT EXISTS jspstudydb.BOARD(
NUM INT PRIMARY KEY,
NAME VARCHAR(30),
SUBJECT VARCHAR(50),
CONTENT VARCHAR(3000),
READCOUNT INT,
DATE DATETIME
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
CREATE TABLE IF NOT EXISTS jspstudydb.BOARD2(
NUM INT PRIMARY KEY,
NAME VARCHAR(30),
SUBJECT VARCHAR(50),
CONTENT VARCHAR(3000),
READCOUNT INT,
DATE DATETIME
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
create table if not exists jspstudydb.COMMENT(
commentID int primary key,
bbsID int,
userID varchar(30),
commentText varchar(200),
commentAvailable int,
date datetime
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
create table if not exists jspstudydb.COMMENT2(
commentID int primary key,
bbsID int,
userID varchar(30),
commentText varchar(200),
commentAvailable int,
date datetime
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;