Java毕设_基于安卓的考研学习app

本文档详细介绍了基于安卓的考研学习app的数据库设计,包括多个表的创建语句,如超级管理员、地址、分类、标签等,并提供了部分JavaBean的创建语句,用于数据操作。
摘要由CSDN通过智能技术生成

基于安卓的考研学习app

基于安卓的考研学习appmysql数据库创建语句
基于安卓的考研学习apporacle数据库创建语句
基于安卓的考研学习appsqlserver数据库创建语句
基于安卓的考研学习appspring+springMVC+hibernate框架对象(javaBean,pojo)设计
基于安卓的考研学习appspring+springMVC+mybatis框架对象(javaBean,pojo)设计

基于安卓的考研学习appmysql数据库版本源码:

超级管理员表创建语句如下:
create table t_admin(
id int primary key auto_increment comment ‘主键’,
username varchar(100) comment ‘超级管理员账号’,
password varchar(100) comment ‘超级管理员密码’
) comment ‘超级管理员’;
insert into t_admin(username,password) values(‘admin’,‘123456’);
SQLCopy
地址表创建语句如下:
create table t_address(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
phone varchar(100) comment ‘电话’,
addressVal varchar(100) comment ‘地址’,
addressName varchar(100) comment ‘姓名’,
ismoren varchar(100) comment ‘是否默认’,
province varchar(100) comment ‘’,
city varchar(100) comment ‘’,
area varchar(100) comment ‘’
) comment ‘地址’;
SQLCopy
分类表创建语句如下:
create table t_bk(
id int primary key auto_increment comment ‘主键’,
bkName varchar(100) comment ‘分类名称’
) comment ‘分类’;
SQLCopy
标签表创建语句如下:
create table t_bq(
id int primary key auto_increment comment ‘主键’,
bqName varchar(100) comment ‘标签’
) comment ‘标签’;
SQLCopy
建议表创建语句如下:
create table t_contact(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
phone varchar(100) comment ‘联系方式’,
content varchar(100) comment ‘内容’,
insertDate datetime comment ‘日期’
) comment ‘建议’;
SQLCopy
客户表创建语句如下:
create table t_customer(
id int primary key auto_increment comment ‘主键’,
username varchar(100) comment ‘账号’,
password varchar(100) comment ‘密码’,
customerName varchar(100) comment ‘姓名’,
sex varchar(100) comment ‘性别’,
address varchar(100) comment ‘地址’,
phone varchar(100) comment ‘手机’,
account int comment ‘账户’,
jf int comment ‘积分’,
js varchar(100) comment ‘’
) comment ‘客户’;
SQLCopy
积分兑换产品表创建语句如下:
create table t_jfdh(
id int primary key auto_increment comment ‘主键’,
jfName varchar(100) comment ‘积分产品名称’,
jfCost int comment ‘积分数量’,
jfPic varchar(100) comment ‘产品图片’
) comment ‘积分兑换产品’;
SQLCopy
库存表创建语句如下:
create table t_kc(
id int primary key auto_increment comment ‘主键’,
productId int comment ‘产品’,
kcNum int comment ‘库存数量’,
insertDate datetime comment ‘日期’
) comment ‘库存’;
SQLCopy
轮播图表创建语句如下:
create table t_lbt(
id int primary key auto_increment comment ‘主键’,
pic varchar(100) comment ‘图片’
) comment ‘轮播图’;
SQLCopy
聊天表创建语句如下:
create table t_liaotian(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
toId int comment ‘用户’,
content varchar(100) comment ‘内容’,
insertDate datetime comment ‘日期’,
batchNum varchar(100) comment ‘批次’
) comment ‘聊天’;
SQLCopy
信息交流表创建语句如下:
create table t_message(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
messageContent varchar(100) comment ‘内容’,
types int comment ‘’,
insertDate datetime comment ‘时间’
) comment ‘信息交流’;
SQLCopy
订单表创建语句如下:
create table t_order(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
productDetail varchar(100) comment ‘订单详细’,
allPrice varchar(100) comment ‘订单总价格’,
status varchar(100) comment ‘状态’,
orderNum varchar(100) comment ‘订单编号’,
pl varchar(100) comment ‘物流信息’,
insertDate datetime comment ‘日期’,
userId int comment ‘’,
orderDate varchar(100) comment ‘’,
address varchar(100) comment ‘’,
xj varchar(100) comment ‘’,
pic varchar(100) comment ‘’,
content varchar(100) comment ‘’,
plDate datetime comment ‘’,
plr varchar(100) comment ‘’
) comment ‘订单’;
SQLCopy
订单详情表创建语句如下:
create table t_orderlist(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
orderId int comment ‘订单’,
productId int comment ‘菜品’,
sl int comment ‘’,
productName varchar(100) comment ‘’,
price int comment ‘’,
productPic1 varchar(100) comment ‘’,
xj varchar(100) comment ‘’,
content varchar(100) comment ‘’,
plDate datetime comment ‘’,
pic varchar(100) comment ‘’,
customerName varchar(100) comment ‘’
) comment ‘订单详情’;
SQLCopy
评论表创建语句如下:
create table t_pinglun(
id int primary key auto_increment comment ‘主键’,
wdxxId int comment ‘评论信息’,
customerId int comment ‘评论人’,
content varchar(100) comment ‘评论内容’,
insertDate datetime comment ‘评论日期’
) comment ‘评论’;
SQLCopy
表创建语句如下:
create table t_pinglun_product(
id int primary key auto_increment comment ‘主键’,
productId int comment ‘评论信息’,
customerId int comment ‘评论人’,
content varchar(100) comment ‘评论内容’,
insertDate datetime comment ‘评论日期’,
xj varchar(100) comment ‘星级’,
pic varchar(100) comment ‘’
) comment ‘’;
SQLCopy
产品表创建语句如下:
create table t_product(
id int primary key auto_increment comment ‘主键’,
productName varchar(100) comment ‘产品名称’,
productPic1 varchar(100) comment ‘图片1’,
productPic2 varchar(100) comment ‘图片2’,
productPic3 varchar(100) comment ‘图片3’,
productPic4 varchar(100) comment ‘图片4’,
price int comment ‘价格’,
oldPrice int comment ‘原价’,
content varchar(100) comment ‘内容’,
nums int comment ‘数量’,
tjxj varchar(100) comment ‘推荐星级’,
status varchar(100) comment ‘状态’,
typesId int comment ‘分类’,
jf int comment ‘积分’,
customerId int comment ‘商家’,
bqId int comment ‘标签’,
v1 varchar(100) comment ‘书名’,
v2 varchar(100) comment ‘作者’,
v3 varchar(100) comment ‘出售数量’
) comment ‘产品’;
SQLCopy
浏览记录表创建语句如下:
create table t_productview(
id int primary key auto_increment comment ‘主键’,
productId int comment ‘产品’,
customerId int comment ‘用户’,
insertDate datetime comment ‘日期’
) comment ‘浏览记录’;
SQLCopy
购物车表创建语句如下:
create table t_shopcar(
id int primary key auto_increment comment ‘主键’,
productId int comment ‘产品’,
num int comment ‘数量’,
customerId int comment ‘’
) comment ‘购物车’;
SQLCopy
收藏表创建语句如下:
create table t_shoucang(
id int primary key auto_increment comment ‘主键’,
productId int comment ‘产品’,
customerId int comment ‘用户’,
insertDate datetime comment ‘日期’
) comment ‘收藏’;
SQLCopy
分类表创建语句如下:
create table t_types(
id int primary key auto_increment comment ‘主键’,
typesName varchar(100) comment ‘分类’
) comment ‘分类’;
SQLCopy
普通员工表创建语句如下:
create table t_user(
id int primary key auto_increment comment ‘主键’,
username varchar(100) comment ‘账号’,
password varchar(100) comment ‘密码’,
name varchar(100) comment ‘姓名’,
gh varchar(100) comment ‘工号’,
mobile varchar(100) comment ‘手机’
) comment ‘普通员工’;
SQLCopy
我的消息表创建语句如下:
create table t_wdxx(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘我’,
title varchar(100) comment ‘标题’,
pic varchar(100) comment ‘图片’,
content varchar(100) comment ‘内容’,
zan int comment ‘赞’,
insertDate datetime comment ‘发布日期’,
nologin varchar(100) comment ‘游客是否可见’,
bkId int comment ‘’
) comment ‘我的消息’;
SQLCopy
资讯表创建语句如下:
create table t_zx(
id int primary key auto_increment comment ‘主键’,
title varchar(100) comment ‘标题’,
content varchar(100) comment ‘内容’,
pic varchar(100) comment ‘图片’,
showDate varchar(100) comment ‘’,
types varchar(100) comment ‘’
) comment ‘资讯’;
SQLCopy

基于安卓的考研学习apporacle数据库版本源码:

超级管理员表创建语句如下:
create table t_admin(
id integer,
username varchar(100),
password varchar(100)
);
insert into t_admin(id,username,password) values(1,‘admin’,‘123456’);
–超级管理员字段加注释
comment on column t_admin.id is ‘主键’;
comment on column t_admin.username is ‘超级管理员账号’;
comment on column t_admin.password is ‘超级管理员密码’;
–超级管理员表加注释
comment on table t_admin is ‘超级管理员’;
SQLCopy
地址表创建语句如下:
create table t_address(
id integer,
customerId int,
phone varchar(100),
addressVal varchar(100),
addressName varchar(100),
ismoren varchar(100),
province varchar(100),
city varchar(100),
area varchar(100)
);
–地址字段加注释
comment on column t_address.id is ‘主键’;
comment on column t_address.customerId is ‘用户’;
comment on column t_address.phone is ‘电话’;
comment on column t_address.addressVal is ‘地址’;
comment on column t_address.addressName is ‘姓名’;
comment on column t_address.ismoren is ‘是否默认’;
comment on column t_address.province is ‘’;
comment on column t_address.city is ‘’;
comment on column t_address.area is ‘’;
–地址表加注释
comment on table t_address is ‘地址’;
SQLCopy
分类表创建语句如下:
create table t_bk(
id integer,
bkName varchar(100)
);
–分类字段加注释
comment on column t_bk.id is ‘主键’;
comment on column t_bk.bkName is ‘分类名称’;
–分类表加注释
comment on table t_bk is ‘分类’;
SQLCopy
标签表创建语句如下:
create table t_bq(
id integer,
bqName varchar(100)
);
–标签字段加注释
comment on column t_bq.id is ‘主键’;
comment on column t_bq.bqName is ‘标签’;
–标签表加注释
comment on table t_bq is ‘标签’;
SQLCopy
建议表创建语句如下:
create table t_contact(
id integer,
customerId int,
phone varchar(100),
content varchar(100),
insertDate datetime
);
–建议字段加注释
comment on column t_contact.id is ‘主键’;
comment on column t_contact.customerId is ‘用户’;
comment on column t_contact.phone is ‘联系方式’;
comment on column t_contact.content is ‘内容’;
comment on column t_contact.insertDate is ‘日期’;
–建议表加注释
comment on table t_contact is ‘建议’;
SQLCopy
客户表创建语句如下:
create table t_customer(
id integer,
username varchar(100),
password varchar(100),
customerName varchar(100),
sex varchar(100),
address varchar(100),
phone varchar(100),
account int,
jf int,
js varchar(100)
);
–客户字段加注释
comment on column t_customer.id is ‘主键’;
comment on column t_customer.username is ‘账号’;
comment on column t_customer.password is ‘密码’;
comment on column t_customer.customerName is ‘姓名’;
comment on column t_customer.sex is ‘性别’;
comment on column t_customer.address is ‘地址’;
comment on column t_customer.phone is ‘手机’;
comment on column t_customer.account is ‘账户’;
comment on column t_customer.jf is ‘积分’;
comment on column t_customer.js is ‘’;
–客户表加注释
comment on table t_customer is ‘客户’;
SQLCopy
积分兑换产品表创建语句如下:
create table t_jfdh(
id integer,
jfName varchar(100),
jfCost int,
jfPic varchar(100)
);
–积分兑换产品字段加注释
comment on column t_jfdh.id is ‘主键’;
comment on column t_jfdh.jfName is ‘积分产品名称’;
comment on column t_jfdh.jfCost is ‘积分数量’;
comment on column t_jfdh.jfPic is ‘产品图片’;
–积分兑换产品表加注释
comment on table t_jfdh is ‘积分兑换产品’;
SQLCopy
库存表创建语句如下:
create table t_kc(
id integer,
productId int,
kcNum int,
insertDate datetime
);
–库存字段加注释
comment on column t_kc.id is ‘主键’;
comment on column t_kc.productId is ‘产品’;
comment on column t_kc.kcNum is ‘库存数量’;
comment on column t_kc.insertDate is ‘日期’;
–库存表加注释
comment on table t_kc is ‘库存’;
SQLCopy
轮播图表创建语句如下:
create table t_lbt(
id integer,
pic varchar(100)
);
–轮播图字段加注释
comment on column t_lbt.id is ‘主键’;
comment on column t_lbt.pic is ‘图片’;
–轮播图表加注释
comment on table t_lbt is ‘轮播图’;
SQLCopy
聊天表创建语句如下:
create table t_liaotian(
id integer,
customerId int,
toId int,
content varchar(100),
insertDate datetime,
batchNum varchar(100)
);
–聊天字段加注释
comment on column t_liaotian.id is ‘主键’;
comment on column t_liaotian.customerId is ‘用户’;
comment on column t_liaotian.toId is ‘用户’;
comment on column t_liaotian.content is ‘内容’;
comment on column t_liaotian.insertDate is ‘日期’;
comment on column t_liaotian.batchNum is ‘批次’;
–聊天表加注释
comment on table t_liaotian is ‘聊天’;
SQLCopy
信息交流表创建语句如下:
create table t_message(
id integer,
customerId int,
messageContent varchar(100),
types int,
insertDate datetime
);
–信息交流字段加注释
comment on column t_message.id is ‘主键’;
comment on column t_message.customerId is ‘用户’;
comment on column t_message.messageContent is ‘内容’;
comment on column t_message.types is ‘’;
comment on column t_message.insertDate is ‘时间’;
–信息交流表加注释
comment on table t_message is ‘信息交流’;
SQLCopy
订单表创建语句如下:
create table t_order(
id integer,
customerId int,
productDetail varchar(100),
allPrice varchar(100),
status varchar(100),
orderNum varchar(100),
pl varchar(100),
insertDate datetime,
userId int,
orderDate varchar(100),
address varchar(100),
xj varchar(100),
pic varchar(100),
content varchar(100),
plDate datetime,
plr varchar(100)
);
–订单字段加注释
comment on column t_order.id is ‘主键’;
comment on column t_order.customerId is ‘用户’;
comment on column t_order.productDetail is ‘订单详细’;
comment on column t_order.allPrice is ‘订单总价格’;
comment on column t_order.status is ‘状态’;
comment on column t_order.orderNum is ‘订单编号’;
comment on column t_order.pl is ‘物流信息’;
comment on column t_order.insertDate is ‘日期’;
comment on column t_order.userId is ‘’;
comment on column t_order.orderDate is ‘’;
comment on column t_order.address is ‘’;
comment on column t_order.xj is ‘’;
comment on column t_order.pic is ‘’;
comment on column t_order.content is ‘’;
comment on column t_order.plDate is ‘’;
comment on column t_order.plr is ‘’;
–订单表加注释
comment on table t_order is ‘订单’;
SQLCopy
订单详情表创建语句如下:
create table t_orderlist(
id integer,
customerId int,
orderId int,
productId int,
sl int,
productName varchar(100),
price int,
productPic1 varchar(100),
xj varchar(100),
content varchar(100),
plDate datetime,
pic varchar(100),
customerName varchar(100)
);
–订单详情字段加注释
comment on column t_orderlist.id is ‘主键’;
comment on column t_orderlist.customerId is ‘用户’;
comment on column t_orderlist.orderId is ‘订单’;
comment on column t_orderlist.productId is ‘菜品’;
comment on column t_orderlist.sl is ‘’;
comment on column t_orderlist.productName is ‘’;
comment on column t_orderlist.price is ‘’;
comment on column t_orderlist.productPic1 is ‘’;
comment on column t_orderlist.xj is ‘’;
comment on column t_orderlist.content is ‘’;
comment on column t_orderlist.plDate is ‘’;
comment on column t_orderlist.pic is ‘’;
comment on column t_orderlist.customerName is ‘’;
–订单详情表加注释
comment on table t_orderlist is ‘订单详情’;
SQLCopy
评论表创建语句如下:
create table t_pinglun(
id integer,
wdxxId int,
customerId int,
content varchar(100),
insertDate datetime
);
–评论字段加注释
comment on column t_pinglun.id is ‘主键’;
comment on column t_pinglun.wdxxId is ‘评论信息’;
comment on column t_pinglun.customerId is ‘评论人’;
comment on column t_pinglun.content is ‘评论内容’;
comment on column t_pinglun.insertDate is ‘评论日期’;
–评论表加注释
comment on table t_pinglun is ‘评论’;
SQLCopy
表创建语句如下:
create table t_pinglun_product(
id integer,
productId int,
customerId int,
content varchar(100),
insertDate datetime,
xj varchar(100),
pic varchar(100)
);
–字段加注释
comment on column t_pinglun_product.id is ‘主键’;
comment on column t_pinglun_product.productId is ‘评论信息’;
comment on column t_pinglun_product.customerId is ‘评论人’;
comment on column t_pinglun_product.content is ‘评论内容’;
comment on column t_pinglun_product.insertDate is ‘评论日期’;
comment on column t_pinglun_product.xj is ‘星级’;
comment on column t_pinglun_product.pic is ‘’;
–表加注释
comment on table t_pinglun_product is ‘’;
SQLCopy
产品表创建语句如下:
create table t_product(
id integer,
productName varchar(100),
productPic1 varchar(100),
productPic2 varchar(100),
productPic3 varchar(100),
productPic4 varchar(100),
price int,
oldPrice int,
content varchar(100),
nums int,
tjxj varchar(100),
status varchar(100),
typesId int,
jf int,
customerId int,
bqId int,
v1 varchar(100),
v2 varchar(100),
v3 varchar(100)
);
–产品字段加注释
comment on column t_product.id is ‘主键’;
comment on column t_product.productName is ‘产品名称’;
comment on column t_product.productPic1 is ‘图片1’;
comment on column t_product.productPic2 is ‘图片2’;
comment on column t_product.productPic3 is ‘图片3’;
comment on column t_product.productPic4 is ‘图片4’;
comment on column t_product.price is ‘价格’;
comment on column t_product.oldPrice is ‘原价’;
comment on column t_product.content is ‘内容’;
comment on column t_product.nums is ‘数量’;
comment on column t_product.tjxj is ‘推荐星级’;
comment on column t_product.status is ‘状态’;
comment on column t_product.typesId is ‘分类’;
comment on column t_product.jf is ‘积分’;
comment on column t_product.customerId is ‘商家’;
comment on column t_product.bqId is ‘标签’;
comment on column t_product.v1 is ‘书名’;
comment on column t_product.v2 is ‘作者’;
comment on co

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值