work.sql 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : localhost_3306
  4. Source Server Version : 50560
  5. Source Host : localhost:3306
  6. Source Database : work
  7. Target Server Type : MYSQL
  8. Target Server Version : 50560
  9. File Encoding : 65001
  10. Date: 2018-12-07 10:48:31
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for `product`
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `product`;
  17. CREATE TABLE `product` (
  18. `id` int(32) NOT NULL AUTO_INCREMENT,
  19. `no` varchar(32) DEFAULT NULL COMMENT '商品编号',
  20. `name` varchar(32) DEFAULT NULL COMMENT '商品名称',
  21. `price` double(32,0) DEFAULT NULL COMMENT '商品价格',
  22. PRIMARY KEY (`id`)
  23. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
  24. -- ----------------------------
  25. -- Records of product
  26. -- ----------------------------
  27. INSERT INTO `product` VALUES ('1', '1701001', '小米手机', '2999');
  28. INSERT INTO `product` VALUES ('3', '1801001', '华为手机', '3699');
  29. INSERT INTO `product` VALUES ('4', '1404004', '诺基亚手机', '1599');
  30. INSERT INTO `product` VALUES ('5', '1501001', '魅族手机', '2199');
  31. INSERT INTO `product` VALUES ('6', '1601001', '坚果手机', '1899');
  32. -- ----------------------------
  33. -- Table structure for `user`
  34. -- ----------------------------
  35. DROP TABLE IF EXISTS `user`;
  36. CREATE TABLE `user` (
  37. `id` int(32) NOT NULL COMMENT '用户id',
  38. `no` varchar(32) DEFAULT NULL COMMENT '用户账号',
  39. `name` varchar(32) DEFAULT NULL COMMENT '用户名称',
  40. `password` varchar(32) DEFAULT NULL COMMENT '用户密码',
  41. PRIMARY KEY (`id`)
  42. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  43. -- ----------------------------
  44. -- Records of user
  45. -- ----------------------------
  46. INSERT INTO `user` VALUES ('1', 'admin', '管理员', '123456');