CREATE TABLE `access_log` (
`access_log_id` int(11) NOT NULL auto_increment,
`access_id` int(11) NOT NULL,
`access_type` tinyint(4) NOT NULL,
`access_date` date default NULL,
`impressions` int(11) NOT NULL default '0',
`visits` int(11) NOT NULL default '0',
PRIMARY KEY (`access_log_id`),
KEY `access_log_access_date` (`access_date`),
KEY `access_id_type` (`access_id`,`access_type`)
) ENGINE=MyISAM AUTO_INCREMENT=212 DEFAULT CHARSET=utf8;KEY `access_log_access_date` (`access_date`),
KEY `access_id_type` (`access_id`,`access_type`)
请问这两行是做什么用的
ENGINE=MyISAM AUTO_INCREMENT=212 DEFAULT CHARSET=utf8
是什么意思
非常感谢
`access_log_id` int(11) NOT NULL auto_increment,
`access_id` int(11) NOT NULL,
`access_type` tinyint(4) NOT NULL,
`access_date` date default NULL,
`impressions` int(11) NOT NULL default '0',
`visits` int(11) NOT NULL default '0',
PRIMARY KEY (`access_log_id`),
KEY `access_log_access_date` (`access_date`),
KEY `access_id_type` (`access_id`,`access_type`)
) ENGINE=MyISAM AUTO_INCREMENT=212 DEFAULT CHARSET=utf8;KEY `access_log_access_date` (`access_date`),
KEY `access_id_type` (`access_id`,`access_type`)
请问这两行是做什么用的
ENGINE=MyISAM AUTO_INCREMENT=212 DEFAULT CHARSET=utf8
是什么意思
非常感谢
使用access_date列创建一个索引:access_log_access_date
KEY `access_id_type` (`access_id`,`access_type`)
使用access_id和access_type两个列创建一个索引access_id_typeENGINE=MyISAM
表的引擎设成MyISAM 默认是InnoDBAUTO_INCREMENT=212
自动增长列从212开始 默认是1
CHARSET=utf8
表的字符集使用utf8 默认同mysql服务器的设置