Description
noneTable properties
| name | value |
|---|
| name | category
|
| created | 3/19/2009 11:39:17 PM
|
| modified |
|
| row count | 16
|
| Size of data | 16 kb
|
| Size of indexes | 0 kb |
| average row size | 1,024 b
|
| engine | InnoDB
|
| version | 10
|
| row format | Compact
|
| max data length | 0 kb
|
| data free | 5242880
|
| auto increment | 17
|
| table collation | utf8_general_ci
|
| create options |
|
Columns
| column | datatype | length | bytes | precision | scale | default | nulls | PK | FK | UQ | extra | privileges | comment |
|---|
| category_id
| tinyint(3) unsigned
|
|
| 3
| 0
|
| NO
| yes
|
| yes
| auto_increment
| select,insert,update,references
|
|
| name
| varchar(25)
| 25
| 75
|
|
|
| NO
|
|
|
|
| select,insert,update,references
|
|
| last_update
| timestamp
|
|
|
|
| CURRENT_TIMESTAMP
| NO
|
|
|
| on update CURRENT_TIMESTAMP
| select,insert,update,references
|
|
Indexes
| name | columns | unique | cardinality | type | comment |
|---|
| PRIMARY
| category_id
| yes
| 16
| BTREE
|
|
Referenced by
Foreign key graph
Dependency graph
Objects that depend on category
Sample rows
| category_id | name | last_update |
|---|
| 1
| Action
| 2/15/2006 4:46:27 AM
|
| 2
| Animation
| 2/15/2006 4:46:27 AM
|
| 3
| Children
| 2/15/2006 4:46:27 AM
|
| 4
| Classics
| 2/15/2006 4:46:27 AM
|
| 5
| Comedy
| 2/15/2006 4:46:27 AM
|
| 6
| Documentary
| 2/15/2006 4:46:27 AM
|
| 7
| Drama
| 2/15/2006 4:46:27 AM
|
| 8
| Family
| 2/15/2006 4:46:27 AM
|
| 9
| Foreign
| 2/15/2006 4:46:27 AM
|
| 10
| Games
| 2/15/2006 4:46:27 AM
|
Code
CREATE TABLE `category` (
`category_id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(25) NOT NULL,
`last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`category_id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8