为什么把sql文件导入mysql时出错_请教下导入sql文件出错的问题

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

跟着网上的教程照抄的,导入就出错了,麻烦帮忙看下是哪里的问题。

--创建数据库

create database myshop15;

--切换数据库

use myshop15;

--建立表

create table user(

id int unsigned not null auto_increment primary key,

username varchar(50) not null,

password varchar(50) not null,

isadmin tinyint not null

);

create table advert(

id int unsigned not null auto_increment primary key,

img varchar(50) not null,

password vachar(50) not null,

isadmin tinyint not null

pos tinyint not null,

url varchar(100) not null

);

create table class(

id int unsigned not null auto_increment primary key,

name varchar(50) not null

);

create table brand(

id int unsigned not null auto_increment primary key,

name varchar(50) not null,

class_id int not null

);

create table shop(

id int unsigned not null auto_increment primary key,

name varchar (50) not null,

img varchar (50) not null,

price float not null,

stock int not null,

shelf tinyint not null

);

create table comment(

id int unsigned not null auto_increment primary key,

user_id int not null,

content text,

shop_id int not null,

time int

);

create table status(

id int unsigned not null auto_increment primary key,

name varchar(50) not null

);

create table indent(

id int unsigned not null auto_increment primary key,

num varchar(50) not null,

user_id int not null,

time int not null,

status_id int not null,

touch_id int not null

);

create table touch(

id int unsigned not null auto_increment primary key,

name varchar(50) not null,

addr varchar(100) not null,

tel varchar(50) not null,

email varchar(50) not null,

user_id int not null

);

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值