Skip to content

Commit 46eed4c

Browse files
committed
add user query
modify main page
1 parent d42369c commit 46eed4c

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed
Binary file not shown.
-50.8 KB
Binary file not shown.
-37.7 KB
Binary file not shown.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
CREATE DATABASE bbs
2+
CHARACTER SET utf8
3+
DEFAULT CHARACTER SET utf8
4+
COLLATE utf8_general_ci
5+
DEFAULT COLLATE utf8_general_ci
6+
;
7+
8+
CREATE TABLE user (
9+
user_id VARCHAR(100) NOT NULL,
10+
user_pwd VARCHAR(100) NOT NULL,
11+
user_name VARCHAR(100) NOT NULL,
12+
user_pic_sm VARCHAR(100) NOT NULL,
13+
PRIMARY KEY(user_id),
14+
UNIQUE(user_pic_sm))
15+
;
16+
17+
INSERT into user (user_id, user_pwd, user_name, user_pic_sm) values
18+
( 'chansung18', '123456', '박찬성', '/img/user_pic/chansung18_user_pic_sm.png'),
19+
( 'enkyoseo', '123456', '서은교', '/img/user_pic/enkyoseo_user_pic_sm.png'),
20+
( 'ksh', '123456', '김성흥', '/img/user_pic/ksh_user_pic_sm.png'),
21+
( 'rogankim', '123456', '김태균', '/img/user_pic/rogankim_user_pic_sm.png');
22+
23+
24+
ALTER TABLE user
25+
DEFAULT CHARACTER SET utf8
26+
COLLATE utf8_general_ci
27+
;

0 commit comments

Comments
 (0)