Database reference - sakila

sakila -  tables -  country

Description

none

Table properties

namevalue
namecountry 
created3/19/2009 11:39:17 PM 
modified 
row count109 
Size of data16 kb
Size of indexes0 kb
average row size150 b
engineInnoDB 
version10 
row formatCompact 
max data length0 kb
data free5242880 
auto increment110 
table collationutf8_general_ci 
create options 

Columns

columndatatypelengthbytesprecisionscaledefaultnullsPKFKUQextraprivilegescomment
country_id  smallint(5) unsigned        NO  yes    yes  auto_increment  select,insert,update,references   
country  varchar(50)  50  150        NO          select,insert,update,references   
last_update  timestamp          CURRENT_TIMESTAMP  NO        on update CURRENT_TIMESTAMP  select,insert,update,references   

Indexes

namecolumnsuniquecardinalitytypecomment
PRIMARY  country_id  yes  109  BTREE   

Referenced by

name
city

Foreign key graph

countrycity

Dependency graph

countrycustomer_listsales_by_storestaff_list

Objects that depend on country

nameobject typelevel
customer_listview1
sales_by_storeview1
staff_listview1

Sample rows

country_idcountrylast_update
Afghanistan  2/15/2006 4:44:00 AM 
Algeria  2/15/2006 4:44:00 AM 
American Samoa  2/15/2006 4:44:00 AM 
Angola  2/15/2006 4:44:00 AM 
Anguilla  2/15/2006 4:44:00 AM 
Argentina  2/15/2006 4:44:00 AM 
Armenia  2/15/2006 4:44:00 AM 
Australia  2/15/2006 4:44:00 AM 
Austria  2/15/2006 4:44:00 AM 
10  Azerbaijan  2/15/2006 4:44:00 AM 

Code

CREATE TABLE `country` (
  `country_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `country` varchar(50) NOT NULL,
  `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`country_id`)
) ENGINE=InnoDB AUTO_INCREMENT=110 DEFAULT CHARSET=utf8



Documentation generated by SqlSpec