Mysql 5.7 JSON 与 物联网设备上数完美结合
MySQL 5.7.15 新特性一 (json) 更多更浓参考官网 https://dev.mysql.com/doc/refman/5.7/en/json.html 一、测试过程 1.创建库表 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 create database veh_history; useveh_history; CREATE TABLE `t_equipment_traffic`( `id` bigint (20) NOT NULL AUTO_INCREMENTCOMMENT '自增主键' , `cn` char (17) NOT NULL COMMENT '设备号' , `st`datetime NOT NULL COMMENT '采集时间' , `description`json, PRIMARY KEY (`id`,`st`), KEY `idx_cn_ct`(`cn`), KEY `idx_st`(`st`) )ENGINE=InnoDBAUTO_INCREMENT=1 DEFAULT CHARSET=utf...