mysql>create database world; //建立库world
mysql>use world; //打开库world
mysql>create table city //建立表city
(ID int(3) not null auto_increment ,
Name char(30) not null default '',
CountryCode char(3) not null default '',
District char(20) not null default '',
Population integer not null default '0',
Primary key ('ID')
); //建表结束
//以下为插入字段
mysql>insert into city values('','Kabul','AFG','Kabol','1780000');
mysql>insert into city values('','Beijing','CHN','Beijing','1780001');