MySQL基礎の5回目以降

http://dotinstall.com/lessons/basic_mysql_v2/ の五回目から

  1. テーブル作成、データ型:int、double、varchar、date、datetime、enumなど。公式レファレンス
  2. フィールドの高度な設定:not null, default, auto_increment, index系(primary key, key, unique) indexは検索が早くなるが、挿入・更新で遅くなる。
  3. データの挿入。抽出。Where句を使った条件付き抽出。order by句による並び替え。limitによる件数制限。
  4. 集計:count, distinct, max, avg, sum, sum + group by, rand(), order by rand()
  5. 文字列、日付関数:length, concat, substring, now, month, datediff
  6. データ更新、削除。
  7. alter tableによるテーブル構造の変更:add、change、drop、add index、drop index、rename
  8. 複数テーブルの結合
  9. ダンプの取り方、復元:mysqldumpでsqlの形でダンプがとられる。sqlなので、mysqlコマンドの入力リダイレクトに指定することでデータベースを復元することができる。


19/19完了。