好友
阅读权限10
听众
最后登录1970-1-1
|
本帖最后由 擦鞋的小男孩 于 2020-2-11 16:54 编辑
单引号双引号都试过了。。都没用。之前5.7不行,升级到8 还是不行。。Navicat也升级了 没用。。。
表结构
/*
Navicat Premium Data Transfer
Source Server : mysql
Source Server Type : MySQL
Source Server Version : 80018
Source Host : localhost:3306
Source Schema : test
Target Server Type : MySQL
Target Server Version : 80018
File Encoding : 65001
Date: 11/02/2020 16:07:09
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for userdate
-- ----------------------------
DROP TABLE IF EXISTS `userdate`;
CREATE TABLE `userdate` (
`RecordsId` int(11) NOT NULL,
`UserName` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`BookName` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`Borrow
Time` date NULL DEFAULT NULL COMMENT '借书日期',
`ReturnTime` date NULL DEFAULT NULL COMMENT '理应归还日期',
`BookState` int(255) NULL DEFAULT NULL COMMENT '租借状态1/0 借/已还'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of userdate
-- ----------------------------
INSERT INTO `userdate` VALUES (1, '1', '1', '2020-02-07', '2020-02-27', 1);
INSERT INTO `userdate` VALUES (1234, 'rex', '君临天下', '2020-02-07', '2020-02-07', 1);
INSERT INTO `userdate` VALUES (123, NULL, '2007-02-02', NULL, NULL, NULL);
INSERT INTO `userdate` VALUES (1, '1', '1', '2020-02-07', '2020-02-27', 1);
SET FOREIGN_KEY_CHECKS = 1;
SQL 语句
INSERT INTO userdate(`RecordsId`, `UserName`, `BookName`, `BorrowTime`, `ReturnTime`, `BookState`)
VALUES (1, '1', '1', '2020-02-07', '2020-02-27', 1); |
-
-
|
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
|
|
|
|