課程
/后端開發
/Java
/Springboot + ElasticSearch 構建博客檢索系統
請問有mysql數據庫里t_blog表的數據嗎?
2019-12-01
源自:Springboot + ElasticSearch 構建博客檢索系統 4-2
正在回答
CREATE DATABASE ems;
USE ems;
CREATE TABLE `t_blog` (? ??
? ?`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',? ??
? ?`title` varchar(60) DEFAULT NULL COMMENT '博客標題',? ??
? ?`author` varchar(60) DEFAULT NULL COMMENT '博客作者',? ??
? ?`content` mediumtext COMMENT '博客內容',? ??
? ?`create_time` datetime DEFAULT NULL COMMENT '創建時間',? ??
? ?`update_time` datetime DEFAULT NULL COMMENT '更新時間',? ??
? ?PRIMARY KEY (`id`)? ??
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4
# 自己造的幾條數據
INSERT INTO `ems`.`t_blog`(`id`, `title`, `author`, `content`, `create_time`, `update_time`) VALUES (1, 'Springboot 為什么這', 'bywind', '沒錯 Springboot ', '2019-12-08 01:44:29', '2019-12-08 01:44:34');
INSERT INTO `ems`.`t_blog`(`id`, `title`, `author`, `content`, `create_time`, `update_time`) VALUES (3, 'Springboot 中 Redis', 'bywind', 'Spring Boot', '2019-12-08 01:44:29', '2019-12-08 01:44:29');
INSERT INTO `ems`.`t_blog`(`id`, `title`, `author`, `content`, `create_time`, `update_time`) VALUES (4, 'Springboot 中如何優化', 'bywind', NULL, '2019-12-08 01:44:29', '2019-12-08 01:44:29');
INSERT INTO `ems`.`t_blog`(`id`, `title`, `author`, `content`, `create_time`, `update_time`) VALUES (5, 'Springboot 消息隊列', 'bywind', NULL, '2019-12-08 01:44:29', '2019-12-08 01:44:29');
INSERT INTO `ems`.`t_blog`(`id`, `title`, `author`, `content`, `create_time`, `update_time`) VALUES (6, 'Docker Compose + Springboot', 'bywind', NULL, '2019-12-08 01:44:29', '2019-12-08 01:44:29');
當然沒有啦? ?上面的T_LOG是老師教學準備的
舉報
Springboot + ElasticSearch 構建個人博客檢索系統
2 回答MySQL數據庫中文本存儲格式
2 回答是不是查詢用es, 更新數據用mysql?
1 回答全量導入oracle的數據會遺漏數據
3 回答logstash 只能同步增加的數據,不能同步更新和刪除的數據
4 回答demo測試數據
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-12-08
CREATE DATABASE ems;
USE ems;
CREATE TABLE `t_blog` (? ??
? ?`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',? ??
? ?`title` varchar(60) DEFAULT NULL COMMENT '博客標題',? ??
? ?`author` varchar(60) DEFAULT NULL COMMENT '博客作者',? ??
? ?`content` mediumtext COMMENT '博客內容',? ??
? ?`create_time` datetime DEFAULT NULL COMMENT '創建時間',? ??
? ?`update_time` datetime DEFAULT NULL COMMENT '更新時間',? ??
? ?PRIMARY KEY (`id`)? ??
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4
# 自己造的幾條數據
INSERT INTO `ems`.`t_blog`(`id`, `title`, `author`, `content`, `create_time`, `update_time`) VALUES (1, 'Springboot 為什么這', 'bywind', '沒錯 Springboot ', '2019-12-08 01:44:29', '2019-12-08 01:44:34');
INSERT INTO `ems`.`t_blog`(`id`, `title`, `author`, `content`, `create_time`, `update_time`) VALUES (3, 'Springboot 中 Redis', 'bywind', 'Spring Boot', '2019-12-08 01:44:29', '2019-12-08 01:44:29');
INSERT INTO `ems`.`t_blog`(`id`, `title`, `author`, `content`, `create_time`, `update_time`) VALUES (4, 'Springboot 中如何優化', 'bywind', NULL, '2019-12-08 01:44:29', '2019-12-08 01:44:29');
INSERT INTO `ems`.`t_blog`(`id`, `title`, `author`, `content`, `create_time`, `update_time`) VALUES (5, 'Springboot 消息隊列', 'bywind', NULL, '2019-12-08 01:44:29', '2019-12-08 01:44:29');
INSERT INTO `ems`.`t_blog`(`id`, `title`, `author`, `content`, `create_time`, `update_time`) VALUES (6, 'Docker Compose + Springboot', 'bywind', NULL, '2019-12-08 01:44:29', '2019-12-08 01:44:29');
2019-12-02
當然沒有啦? ?上面的T_LOG是老師教學準備的