07 はじめてのMy Sql

788 views

Published on

PHPでのWebプログラミングに欠かせないMySQLの導入です。

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
788
On SlideShare
0
From Embeds
0
Number of Embeds
27
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

07 はじめてのMy Sql

  1. 1. PHP (7)! MySQL PHP Web MySQL
  2. 2. Web Web PHP Perl Ruby MySQL HTML+CSS+Javascript sendmail GD Web   Flash         10.4.18 (C)
  3. 3. (DB) DB   10.4.18 (C)
  4. 4. CSV   Web   10.4.18 (C)
  5. 5. 1.    2.      3.    4.  10.4.18 (C)
  6. 6. RMDBS DB   RDBMS(Relational  Database  Management  System)   …   1.  A 9   2.  B   3.  20   10.4.18 (C)
  7. 7. Excel 10.4.18 (C)
  8. 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)
  9. 9. WordPress RDBMS (1) 1.  degiholly_commentmeta   2.   degiholly_comments   3.   degiholly_contact_form_7   4.   degiholly_links   5.   degiholly_options   6.   degiholly_postmeta   7.   degiholly_posts   8.   degiholly_terms   I  wanna  be  PHPer 12 9.   degiholly_term_relationships   10.   degiholly_term_taxonomy   11.   degiholly_usermeta   12.   degiholly_users   10.4.18 (C)
  10. 10. WordPress RDBMS (2) 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)
  11. 11. … …SQL   … 10.4.18 (C)

×