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

為了賬號安全,請及時綁定郵箱和手機立即綁定


誰能給看看,哪里出問題了,為什么總是報錯:

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual tha
corresponds to your MySQL server version for the right syntax to use near '



--創(chuàng)建數(shù)據(jù)庫
CREATE DATABASE IF NOT EXISTS`shopImooc`;

--打開數(shù)據(jù)庫
USE`shopImooc`;

--創(chuàng)建管理員表
DROP 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
);

--創(chuàng)建分類表
DROP TABLE IF EXISTS`imooc_cate`;
CREATE TABLE`imooc_cate`(
`id`smallint unsigned auto_increment key,
`cName`varchar(50) unique
);

--創(chuàng)建商品表
DROP TABLE IF EXISTS`imooc_pro`;
CREATE TABLE`imooc_pro`(
`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
);

--創(chuàng)建用戶表
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
);


--創(chuàng)建相冊表
DROP 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
);

正在回答

3 回答

我也是碰到這個問題,不知怎么解決

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

54280deb0001a2a305000466.jpg

我這里始終不行,下載老師的文件也不行, 難道是運行的時候哪里搞錯了?新人剛學(xué),謝謝你的熱心

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

藍(lán)胖子叮叮當(dāng)

我也是 ,解決了嗎
2015-03-13 回復(fù) 有任何疑惑可以回復(fù)我~

syntax錯誤是語法錯誤,?“right syntax to use near '”near后面是什么?我在控制臺執(zhí)行了你給出的SQL語句除了“`sex`enum("男","女","保密") not null default "保密",”這句有問題之外,其他一切正常

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

舉報

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

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

進入課程
微信客服

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

幫助反饋 APP下載

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

公眾號

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