Database reference - sakila

sakila -  tables -  actor

Description

none

Table properties

namevalue
nameactor 
created3/19/2009 11:39:17 PM 
modified 
row count200 
Size of data16 kb
Size of indexes16 kb
average row size81 b
engineInnoDB 
version10 
row formatCompact 
max data length0 kb
data free5242880 
auto increment201 
table collationutf8_general_ci 
create options 

Columns

columndatatypelengthbytesprecisionscaledefaultnullsPKFKUQextraprivilegescomment
actor_id  smallint(5) unsigned        NO  yes    yes  auto_increment  select,insert,update,references   
first_name  varchar(45)  45  135        NO          select,insert,update,references   
last_name  varchar(45)  45  135        NO          select,insert,update,references   
last_update  timestamp          CURRENT_TIMESTAMP  NO        on update CURRENT_TIMESTAMP  select,insert,update,references   

Indexes

namecolumnsuniquecardinalitytypecomment
PRIMARY  actor_id  yes  200  BTREE   
idx_actor_last_name  last_name  no  200  BTREE   

Referenced by

name
film_actor

Foreign key graph

actorfilm_actor

Dependency graph

actorfilm_listnicer_but_slower_film_list

Objects that depend on actor

nameobject typelevel
film_listview1
nicer_but_slower_film_listview1

Sample rows

actor_idfirst_namelast_namelast_update
PENELOPE  GUINESS  2/15/2006 4:34:33 AM 
NICK  WAHLBERG  2/15/2006 4:34:33 AM 
ED  CHASE  2/15/2006 4:34:33 AM 
JENNIFER  DAVIS  2/15/2006 4:34:33 AM 
JOHNNY  LOLLOBRIGIDA  2/15/2006 4:34:33 AM 
BETTE  NICHOLSON  2/15/2006 4:34:33 AM 
GRACE  MOSTEL  2/15/2006 4:34:33 AM 
MATTHEW  JOHANSSON  2/15/2006 4:34:33 AM 
JOE  SWANK  2/15/2006 4:34:33 AM 
10  CHRISTIAN  GABLE  2/15/2006 4:34:33 AM 

Code

CREATE TABLE `actor` (
  `actor_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `first_name` varchar(45) NOT NULL,
  `last_name` varchar(45) NOT NULL,
  `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`actor_id`),
  KEY `idx_actor_last_name` (`last_name`)
) ENGINE=InnoDB AUTO_INCREMENT=201 DEFAULT CHARSET=utf8



Documentation generated by SqlSpec