CREATE DATABASE IF NOT EXISTS `shopImooc1`; USE `shopImooc1`; DROP TABLE IF EXISTS `imooc_admin`; CREATE TABLE `imooc_admin` ( `id` int(10) unsigned auto_increment key, `username` varchar(20) not null unique, `password` char(32) not null, `email` varchar(50) ); DROP TABLE IF EXISTS `imooc_cate`; CREATE TABLE `imooc_cate` ( `id` smallint(10) auto_increment unsigned key, `cName` varchar(20) unique ); DROP TABLE IF EXISTS `imooc_pro`; CREATE TABLE `imooc_pro` ( `id` int(10) unique auto_increment key, `pNmae` varchar(50) not null unique, `pSn` varchar(50) not null, `cPrice` decimal(10,2) not null, `iPrice` decimal(10,2) not null, `pDesc` text, `pImg` varchar(50) not null, `pubImg` int unsigned not null, `isShows` tinyint(1) default 1, `isHot` tinyint(1) default 0, `cId` smallint not null unsigned ); DROP TABLE IF EXISTS `imooc_user`; CREATE TABLE `imooc_user` ( `id` int(10) auto_increment unsigned key, `username` varchar(20) not null unique, `password` varchar(32) not null, `sex` enum("男","女","保密") default 保密" not null, `face` varchar(50) not null, `regTime` int unsigned not null ); DROP TABLE IF EXISTS `imooc_album`; CREATE TABLE `imooc_album` ( `id` int(10) unsiganed auto_increment key, `pID` unsiganed not null, `albumPath` varchar(50) not null );
这段语句是我看着教程一点一点打的、为什么一直会出错呢?
教程里都没问题啊 求大牛解释
qq_走走_0