01.
02.
03.
04.
05.
06.
07.
08.
09.
10.
SET
SQL_MODE=
"NO_AUTO_VALUE_ON_ZERO"
;
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
CREATE
TABLE
`book` (
23.
`book_id`
int
(11)
NOT
NULL
,
24.
`member_id`
int
(11)
default
NULL
,
25.
`book_date`
date
default
NULL
,
26.
`book_hour`
int
(11)
default
NULL
,
27.
`book_no`
int
(11)
default
NULL
,
28.
PRIMARY
KEY
(`book_id`)
29.
) ENGINE=MyISAM
DEFAULT
CHARSET=utf8;
30.
31.
32.
33.
34.
35.
INSERT
INTO
`book`
VALUES
(1, 2,
'2014-02-20'
, 1, 1);
36.
INSERT
INTO
`book`
VALUES
(2, 2,
'2014-02-28'
, 2, 2);
37.
INSERT
INTO
`book`
VALUES
(3, 3,
'2014-02-18'
, 1, 3);
38.
39.
40.
41.
42.
43.
44.
45.
CREATE
TABLE
`member` (
46.
`member_id`
int
(11)
NOT
NULL
,
47.
`username`
varchar
(20)
default
NULL
,
48.
`
password
`
varchar
(20)
default
NULL
,
49.
`email`
varchar
(20)
default
NULL
,
50.
`active_password`
varchar
(5)
default
NULL
,
51.
PRIMARY
KEY
(`member_id`)
52.
) ENGINE=MyISAM
DEFAULT
CHARSET=utf8;
53.
54.
55.
56.
57.
58.
INSERT
INTO
`member`
VALUES
(1,
'arminfor'
,
'arminfor'
,
'arminfor@hotmail.com'
,
NULL
);
59.
INSERT
INTO
`member`
VALUES
(3,
'arm'
,
'arm'
,
'arminf1or@hotmail.co'
,
NULL
);