亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

運行不了..

運行不了..

xiemioc 2016-07-17 17:45:28
create database if NOT EXISTS 'shopImooc';USE 'shopImooc';--gliyaungbiaoDROP TABLE IF EXISTS 'imooc_admin';create table 'imooc_admin'('id' tinyint unsigned auto_increment key,'username' varchar(20) not null unique,'password' char(32) not null,'email' varchar(50) not null);--fenleibiaoDROP table IF EXISTS 'imooc_cate';create table 'imooc_cate'('id' smallint unsigned auto_increment key,'cName' varchar(50) unique);--shangpingbiaodrop table if exists 'imooc_por';create table 'imooc_por'('id' int unsigned auto_increment key,'pName' varchar(50) not null unique,'pSn' varchar(50) not null,'pNum' int unsigned default 1,'mPrice' decimal(10,2) not null,'iPrice' decimal(10,2) not null,'pDesc' text,'pImg' varchar(50) not null,'pubTime' int unsigned not null,'isShow' tinyint(1) default 1,'isHot' tinyint(1) default 0,'cId' smallint unsigned not null);--yonghubiaoDROP table if exists 'imooc_user';create table 'imooc_user'('id' int unsigned auto_increment key,'username' varchar(20) not null unique,'password' char(30) not null,'sex' enum("男","女","保密") not null default "保密",'face' varchar(50) not null,'regTime' int unsigned not null);--xiancbiaoDROP table if exists 'imooc_album';create table 'imooc_album'('id' int unsigned auto_increment key,'pid' int unsigned not null,'albumPath' varchar(50) not null);
查看完整描述

1 回答

?
qq_大寒_2

TA貢獻173條經驗 獲得超185個贊

有設置主鍵嗎?

查看完整回答
反對 回復 2016-07-17
  • 1 回答
  • 0 關注
  • 1973 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號