1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| mysql> use hogehoge mysql> show full columns from users; +-----------------+--------------+-----------------+------+-----+-------------------+----------------+---------------------------------+---------------------------------+ | Field | Type | Collation | Null | Key | Default | Extra| Privileges | Comment | +-----------------+--------------+-----------------+------+-----+-------------------+----------------+---------------------------------+---------------------------------+ | user_id | int(11) | NULL | NO | PRI | NULL | auto_increment| select,insert,update,references | | | last_name | varchar(10) | utf8_general_ci | NO | | NULL || select,insert,update,references | 姓 | | first_name | varchar(10) | utf8_general_ci | NO | | NULL || select,insert,update,references | 名 | | last_kana_name | varchar(10) | utf8_general_ci | YES | | NULL || select,insert,update,references | 姓(カナ) | | first_kana_name | varchar(10) | utf8_general_ci | YES | | NULL || select,insert,update,references | 名(カナ) | | username | varchar(20) | utf8_general_ci | NO | MUL | NULL || select,insert,update,references | ユーザ名 | | password | varchar(40) | utf8_general_ci | NO | | NULL || select,insert,update,references | パスワード | | email | varchar(100) | utf8_general_ci | NO | | NULL || select,insert,update,references | Email | | city | varchar(255) | utf8_general_ci | NO | | NULL || select,insert,update,references | | | postcode | varchar(10) | utf8_general_ci | NO | | NULL || select,insert,update,references | 郵便番号 | | birthday | date | NULL | NO | | NULL || select,insert,update,references | 誕生日 | | gender | tinyint(4) | NULL | NO | | NULL || select,insert,update,references | 性別(1:男 2:女 3:その他) | | card_number | varchar(20) | utf8_general_ci | YES | | NULL || select,insert,update,references | クレジットカードNo | | description | longtext | utf8_general_ci | YES | | NULL || select,insert,update,references | 説明 | | created | timestamp | NULL | NO | | CURRENT_TIMESTAMP || select,insert,update,references | | | updated | datetime | NULL | YES | | NULL || select,insert,update,references | | +-----------------+--------------+-----------------+------+-----+-------------------+----------------+---------------------------------+---------------------------------+
mysql> use mogemoge mysql> show full columns from members; +-------------+-------------+-----------------+------+-----+-------------------+----------------+---------------------------------+-----------------+ | Field | Type | Collation | Null | Key | Default | Extra | Privileges | Comment | +-------------+-------------+-----------------+------+-----+-------------------+----------------+---------------------------------+-----------------+ | id | int(11) | NULL | NO | PRI | NULL | auto_increment | select,insert,update,references | | | member_code | varchar(20) | utf8_general_ci | NO | UNI | NULL | | select,insert,update,references | 会員コード | | created | timestamp | NULL | NO | | CURRENT_TIMESTAMP | | select,insert,update,references | | | updated | datetime | NULL | YES | | NULL | | select,insert,update,references | | +-------------+-------------+-----------------+------+-----+-------------------+----------------+---------------------------------+-----------------+
|