第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

復(fù)制進(jìn)入aql后就出錯(cuò)~不知道為什么

代碼(抄老師的):

CREATE DATABSE IF NOT EXISTS 'shopImooc';

USE 'shopImooc';

--管理員表

DROP TABLE IF EXISTS 'imooc_admin';

CREATE TABLE IF NOT EXISTS 'imooc_admin'(

'id' TINYINT unsigned auto_increment key,

'username' varchar(20) not null unique,

'password' char(32) not null,

'email' varchar(50) not null

);

--分列表

DROP TABLE IF EXISTS 'imooc_cate';

CREATE TABLE 'imooc_cate'(

'id' smallint UN50SIGNED auto_increment null key,

'cName' varchar() unique

);

--商品表

DROP TABLE IF EXISTS 'imooc_pro'(

'id' int unsigned auto_increment key,

'pName' varchar(50) not null unique,

'pSn' varchar(50) not null,

'pNum' int int unsigned default 1,

'mPrice' decimal(10,2) unsigned 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 1,

'cId' smallint unsigned not null

);

--用戶表

DROP TABLE IF EXISTS 'imooc_user'

CREATE TABLE 'imooc_user'(

'id' int unsigned auto_increment key,

'username' varchar(20) not null unique,

'password' char(32) not null,

'sex' enum('男','女','保密') not null default '保密',

'face' varchar(50) not null,

'regTime' int unsigned not null

);

--相冊(cè)表

DROP TABLE IF EXISTS'imooc_ablum';

CREATE TABLE 'imooc_ablum'(

'id' int unsigned auto_increment key,

'pid' int unsigned not null,

'ablumPath' varchar(20) unsigned not null

);


正在回答

1 回答

商品表 ‘pNum’類型定義錯(cuò)誤了 ?int或者 tinyint?

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
手把手教你實(shí)現(xiàn)電商網(wǎng)站后臺(tái)開發(fā)
  • 參與學(xué)習(xí)       117248    人
  • 解答問題       2101    個(gè)

手把手教你用PHP搭建電子商務(wù)平臺(tái),由淺入深教你搭建電商系統(tǒng)

進(jìn)入課程

復(fù)制進(jìn)入aql后就出錯(cuò)~不知道為什么

我要回答 關(guān)注問題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)