手机银行app
手机银行appmysql数据库创建语句
手机银行apporacle数据库创建语句
手机银行appsqlserver数据库创建语句
手机银行appspring+springMVC+hibernate框架对象(javaBean,pojo)设计
手机银行appspring+springMVC+mybatis框架对象(javaBean,pojo)设计
高质量编程视频:shangyepingtai.xin
手机银行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_account(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
accountName varchar(100) comment ‘账号’,
phone varchar(100) comment ‘绑定手机号’,
fee int comment ‘金额’,
zfed int comment ‘额度’,
status varchar(100) comment ‘状态’,
iswkqx varchar(100) comment ‘是否可以无卡取现’
) comment ‘账户’;
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 ‘积分’,
dzqb int comment ‘电子钱包’,
gjj int comment ‘公积金’
) comment ‘客户’;
SQLCopy
贷款表创建语句如下:
create table t_daikuan(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
fee int comment ‘贷款金额’,
dkll double comment ‘贷款利率’,
qs int comment ‘期数’,
insertDate datetime comment ‘贷款日期’
) comment ‘贷款’;
SQLCopy
贷款还款表创建语句如下:
create table t_daikuanlist(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
daikuanId int comment ‘贷款’,
fee int comment ‘还款金额’,
showDate varchar(100) comment ‘还款日期’,
status varchar(100) comment ‘待还款’
) comment ‘贷款还款’;
SQLCopy
电子钱包表创建语句如下:
create table t_dzqb(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
accountName varchar(100) comment ‘账号’,
phone varchar(100) comment ‘绑定手机号’,
types varchar(100) comment ‘充值还是取现’,
fee int comment ‘金额’,
insertDate datetime comment ‘日期’
) comment ‘电子钱包’;
SQLCopy
公积金表创建语句如下:
create table t_gjj(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
fee int comment ‘金额’
) comment ‘公积金’;
SQLCopy
公积金汇缴表创建语句如下:
create table t_gjjlist(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
fee int comment ‘金额’,
insertDate datetime comment ‘日期’
) comment ‘公积金汇缴’;
SQLCopy
公交卡充值表创建语句如下:
create table t_gjk(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
accountName varchar(100) comment ‘账号’,
phone varchar(100) comment ‘绑定手机号’,
fee int comment ‘充值金额’,
kahao varchar(100) comment ‘充值卡号’,
insertDate datetime 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_liuyan(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
content varchar(100) comment ‘内容’,
insertDate datetime comment ‘日期’,
back varchar(100) comment ‘回复’,
status 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 ‘积分’,
userId int comment ‘商家’,
bqId int 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_yy(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
accountName varchar(100) comment ‘账号’,
phone varchar(100) comment ‘绑定手机号’,
fee int comment ‘预约金额’,
showDate varchar(100) comment ‘取现日期’,
status varchar(100) comment ‘状态’
) comment ‘无卡取现预约’;
SQLCopy
作业表创建语句如下:
create table t_zuoye(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
content varchar(100) comment ‘说明’,
fileUrl varchar(100) comment ‘附件’,
insertDate datetime comment ‘日期’,
back varchar(100) comment ‘回复’,
pf int comment ‘评分’,
status varchar(100) 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 ‘’
) comment ‘资讯’;
SQLCopy
转账表创建语句如下:
create table t_zz(
id int primary key auto_increment comment ‘主键’,
zzNum varchar(100) comment ‘转账编号’,
customerId int comment ‘用户’,
accountName varchar(100) comment ‘账号’,
phone varchar(100) comment ‘绑定手机号’,
toaccountName varchar(100) comment ‘对方账号’,
fee int comment ‘转账金额’,
insertDate datetime 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_account(
id integer,
customerId int,
accountName varchar(100),
phone varchar(100),
fee int,
zfed int,
status varchar(100),
iswkqx varchar(100)
);
–账户字段加注释
comment on column t_account.id is ‘主键’;
comment on column t_account.customerId is ‘用户’;
comment on column t_account.accountName is ‘账号’;
comment on column t_account.phone is ‘绑定手机号’;
comment on column t_account.fee is ‘金额’;
comment on column t_account.zfed is ‘额度’;
comment on column t_account.status is ‘状态’;
comment on column t_account.iswkqx is ‘是否可以无卡取现’;
–账户表加注释
comment on table t_account 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,
dzqb int,
gjj int
);
–客户字段加注释
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.dzqb is ‘电子钱包’;
comment on column t_customer.gjj is ‘公积金’;
–客户表加注释
comment on table t_customer is ‘客户’;
SQLCopy
贷款表创建语句如下:
create table t_daikuan(
id integer,
customerId int,
fee int,
dkll double,
qs int,
insertDate datetime
);
–贷款字段加注释
comment on column t_daikuan.id is ‘主键’;
comment on column t_daikuan.customerId is ‘用户’;
comment on column t_daikuan.fee is ‘贷款金额’;
comment on column t_daikuan.dkll is ‘贷款利率’;
comment on column t_daikuan.qs is ‘期数’;
comment on column t_daikuan.insertDate is ‘贷款日期’;
–贷款表加注释
comment on table t_daikuan is ‘贷款’;
SQLCopy
贷款还款表创建语句如下:
create table t_daikuanlist(
id integer,
customerId int,
daikuanId int,
fee int,
showDate varchar(100),
status varchar(100)
);
–贷款还款字段加注释
comment on column t_daikuanlist.id is ‘主键’;
comment on column t_daikuanlist.customerId is ‘用户’;
comment on column t_daikuanlist.daikuanId is ‘贷款’;
comment on column t_daikuanlist.fee is ‘还款金额’;
comment on column t_daikuanlist.showDate is ‘还款日期’;
comment on column t_daikuanlist.status is ‘待还款’;
–贷款还款表加注释
comment on table t_daikuanlist is ‘贷款还款’;
SQLCopy
电子钱包表创建语句如下:
create table t_dzqb(
id integer,
customerId int,
accountName varchar(100),
phone varchar(100),
types varchar(100),
fee int,
insertDate datetime
);
–电子钱包字段加注释
comment on column t_dzqb.id is ‘主键’;
comment on column t_dzqb.customerId is ‘用户’;
comment on column t_dzqb.accountName is ‘账号’;
comment on column t_dzqb.phone is ‘绑定手机号’;
comment on column t_dzqb.types is ‘充值还是取现’;
comment on column t_dzqb.fee is ‘金额’;
comment on column t_dzqb.insertDate is ‘日期’;
–电子钱包表加注释
comment on table t_dzqb is ‘电子钱包’;
SQLCopy
公积金表创建语句如下:
create table t_gjj(
id integer,
customerId int,
fee int
);
–公积金字段加注释
comment on column t_gjj.id is ‘主键’;
comment on column t_gjj.customerId is ‘用户’;
comment on column t_gjj.fee is ‘金额’;
–公积金表加注释
comment on table t_gjj is ‘公积金’;
SQLCopy
公积金汇缴表创建语句如下:
create table t_gjjlist(
id integer,
customerId int,
fee int,
insertDate datetime
);
–公积金汇缴字段加注释
comment on column t_gjjlist.id is ‘主键’;
comment on column t_gjjlist.customerId is ‘用户’;
comment on column t_gjjlist.fee is ‘金额’;
comment on column t_gjjlist.insertDate is ‘日期’;
–公积金汇缴表加注释
comment on table t_gjjlist is ‘公积金汇缴’;
SQLCopy
公交卡充值表创建语句如下:
create table t_gjk(
id integer,
customerId int,
accountName varchar(100),
phone varchar(100),
fee int,
kahao varchar(100),
insertDate datetime
);
–公交卡充值字段加注释
comment on column t_gjk.id is ‘主键’;
comment on column t_gjk.customerId is ‘用户’;
comment on column t_gjk.accountName is ‘账号’;
comment on column t_gjk.phone is ‘绑定手机号’;
comment on column t_gjk.fee is ‘充值金额’;
comment on column t_gjk.kahao is ‘充值卡号’;
comment on column t_gjk.insertDate is ‘充值日期’;
–公交卡充值表加注释
comment on table t_gjk 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_liuyan(
id integer,
customerId int,
content varchar(100),
insertDate datetime,
back varchar(100),
status varchar(100)
);
–留言字段加注释
comment on column t_liuyan.id is ‘主键’;
comment on column t_liuyan.customerId is ‘用户’;
comment on column t_liuyan.content is ‘内容’;
comment on column t_liuyan.insertDate is ‘日期’;
comment on column t_liuyan.back is ‘回复’;
comment on column t_liuyan.status is ‘状态’;
–留言表加注释
comment on table t_liuyan 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,
userId int,
bqId int
);
–产品字段加注释
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.userId is ‘商家’;
comment on column t_product.bqId is ‘标签’;
–产品表加注释
comment on table t_product is ‘产品’;
SQLCopy
浏览记录表创建语句如下:
create table t_productview(
id integer,
productId int,
customerId int,
insertDate datetime
);
–浏览记录字段加注释
comment on column t_productview.id is ‘主键’;
comment on column t_productview.productId is ‘产品’;
comment on column t_productview.customerId is ‘用户’;
comment on column t_productview.insertDate is ‘日期’;
–浏览记录表加注释
comment on table t_productview is ‘浏览记录’;
SQLCopy
购物车表创建语句如下:
create table t_shopcar(
id integer,
productId int,
num int,
customerId int
);
–购物车字段加注释
comment on column t_shopcar.id is ‘主键’;
comment on column t_shopcar.productId is ‘产品’;
comment on column t_shopcar.num is ‘数量’;
comment on column t_shopcar.customerId is ‘’;
–购物车表加注