8.
row
ID name
ID name age sex prefecture birthday
1 20 0 1990-‐05-‐05
14:00:00
2 35 1 1975-‐08-‐22
22:02:00
3 50 0 1960-‐12-‐11
00:00:00
MySQL
Datetime Timestamp
ID
A ID5 0/1
10.4.18 (C)
10. WordPress RDBMS (2)
RDBMS
1 1 (1
fact
in
1
place)
ID
1 2010.8.29
2 2010.8.31
3 2010.9.21 EC
4 2010.10.1
2
ID ID ID
1 2010.8.29 1 1
2 2010.8.31 2 2
3 EC
3 2010.9.21 3
4 2010.10.1 1
10.4.18 (C)
11. WordPress RDBMS (3)
A
wp_posts wp_terms wp_term_relationships
1. wp_posts A ID
2. wp_term_relationships ID ID
3. wp_terms ID
SQL
SELECT
term.name
FROM
wp_posts
as
p,
wp_terms
as
term,
wp_term_relationships
as
rel
WHERE
p.post_title
=
‘A’
AND
p.ID
=
rel.object_id
AND
rel.term_taxonomy_id
=
term.term_id;
10.4.18 (C)
12. (DB) Web
Yahoo!
Web
1
ALAYA
CMS
CackPHP
MySQL
Volume
1 2
WordPress CMS 10,000
2
PHP
10.4.18 (C)