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