Created
June 11, 2012 06:21
-
-
Save mironal/2908719 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> show tables; | |
+--------------------------+ | |
| Tables_in_db_hogehoge | | |
+--------------------------+ | |
| entrys | | |
| timestamps | | |
+--------------------------+ | |
mysql> desc entrys; | |
+--------------+--------------+------+-----+---------+----------------+ | |
| Field | Type | Null | Key | Default | Extra | | |
+--------------+--------------+------+-----+---------+----------------+ | |
| id | int(11) | NO | PRI | NULL | auto_increment | | |
| rank | int(11) | NO | MUL | NULL | | | |
| timestamp_id | int(11) | NO | MUL | NULL | | | |
| title | varchar(255) | NO | | NULL | | | |
| url | varchar(255) | NO | | NULL | | | |
| description | text | YES | | NULL | | | |
| cnt | int(11) | YES | | NULL | | | |
| created | datetime | YES | | NULL | | | |
| modified | datetime | YES | | NULL | | | |
+--------------+--------------+------+-----+---------+----------------+ | |
mysql> desc timestamps; | |
+----------+-------------------+------+-----+---------+----------------+ | |
| Field | Type | Null | Key | Default | Extra | | |
+----------+-------------------+------+-----+---------+----------------+ | |
| id | int(11) | NO | PRI | NULL | auto_increment | | |
| tweet | varchar(500) | YES | | NULL | | | |
| type | enum('hot','new') | NO | | hot | | | |
| created | datetime | YES | | NULL | | | |
| modified | datetime | YES | | NULL | | | |
+----------+-------------------+------+-----+---------+----------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment