123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- /*
- Navicat MySQL Data Transfer
- Source Server : localhost_3306
- Source Server Version : 50560
- Source Host : localhost:3306
- Source Database : work
- Target Server Type : MYSQL
- Target Server Version : 50560
- File Encoding : 65001
- Date: 2018-12-07 10:48:31
- */
- SET FOREIGN_KEY_CHECKS=0;
- -- ----------------------------
- -- Table structure for `product`
- -- ----------------------------
- DROP TABLE IF EXISTS `product`;
- CREATE TABLE `product` (
- `id` int(32) NOT NULL AUTO_INCREMENT,
- `no` varchar(32) DEFAULT NULL COMMENT '商品编号',
- `name` varchar(32) DEFAULT NULL COMMENT '商品名称',
- `price` double(32,0) DEFAULT NULL COMMENT '商品价格',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
- -- ----------------------------
- -- Records of product
- -- ----------------------------
- INSERT INTO `product` VALUES ('1', '1701001', '小米手机', '2999');
- INSERT INTO `product` VALUES ('3', '1801001', '华为手机', '3699');
- INSERT INTO `product` VALUES ('4', '1404004', '诺基亚手机', '1599');
- INSERT INTO `product` VALUES ('5', '1501001', '魅族手机', '2199');
- INSERT INTO `product` VALUES ('6', '1601001', '坚果手机', '1899');
- -- ----------------------------
- -- Table structure for `user`
- -- ----------------------------
- DROP TABLE IF EXISTS `user`;
- CREATE TABLE `user` (
- `id` int(32) NOT NULL COMMENT '用户id',
- `no` varchar(32) DEFAULT NULL COMMENT '用户账号',
- `name` varchar(32) DEFAULT NULL COMMENT '用户名称',
- `password` varchar(32) DEFAULT NULL COMMENT '用户密码',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- ----------------------------
- -- Records of user
- -- ----------------------------
- INSERT INTO `user` VALUES ('1', 'admin', '管理员', '123456');
|