
复制-- 借阅者表 CREATETABLE `userinfo` ( `uid` int(11) NOTNULL AUTO_INCREMENT COMMENT 主键,学习G新 `uname` varchar(20) NOTNULL COMMENT 姓名, `uage` int(11) NOTNULL COMMENT 年龄, PRIMARYKEY (`uid`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; INSERTINTO `userinfo` VALUES (1, 小明, 20); INSERTINTO `userinfo` VALUES (2, 小张, 30); INSERTINTO `userinfo` VALUES (3, 小李, 28); -- 书籍表 CREATETABLE `bookinfo` ( `id` int(11) NOTNULL AUTO_INCREMENT COMMENT 主键, `book_no` varchar(20) NOTNULL COMMENT 书籍编号, `book_name` varchar(20) NOTNULL COMMENT 书籍名称, PRIMARYKEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; INSERTINTO `bookinfo` VALUES (1, ISBN001, 计算机基础); INSERTINTO `bookinfo` VALUES (2, ISBN002, 计算机网络); INSERTINTO `bookinfo` VALUES (3, ISBN003, 高等数学); INSERTINTO `bookinfo` VALUES (4, ISBN004, 明朝那些事); INSERTINTO `bookinfo` VALUES (5, ISBN005, 物理); INSERTINTO `bookinfo` VALUES (13, ISBN006, 读者); -- 借阅记录表 CREATETABLE `borrow_record` ( `id` int(11) NOTNULL AUTO_INCREMENT COMMENT 主键, `user_id` int(11) NOTNULL COMMENT 用户id, `book_id` int(11) NOTNULL COMMENT 书籍id, `borrowtime` datetime NOTNULL COMMENT 书籍id, PRIMARYKEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; INSERTINTO `borrow_record` VALUES (8, 1, 2, 2021-05-01 10:52:00); INSERTINTO `borrow_record` VALUES (9, 2, 4, 2021-07-12 23:32:00); INSERTINTO `borrow_record` VALUES (10, 2, 1, 2021-03-21 09:00:00); INSERTINTO `borrow_record` VALUES (11, 1, 3, 2021-08-11 17:39:00); INSERTINTO `borrow_record` VALUES (12, 1, 5, 2021-09-02 18:12:00); INSERTINTO `borrow_record` VALUES (13, 3, 1, 2021-07-06 12:32:00); INSERTINTO `borrow_record` VALUES (14, 2, 1, 2021-08-09 10:10:00); INSERTINTO `borrow_record` VALUES (15, 4, 3, 2021-04-15 19:45:00 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.








