Loading...

摘要: 通过MySQL的information_schema数据库,可查询数据库中每个表占用的空间、表记录的行数; 该库中有一个TABLES表,这个表主要字段分别是: TABLE_SCHEMA:数据库名 TABLE_NAME:表名 ENGINE:所使用的存储引擎 TABLES_ROWS:记录数 DATA_L 阅读全文
posted @ 2020-12-11 14:39 高宏宇 阅读(661) 评论(0) 推荐(0) 编辑
摘要: 新建表 create table bigdata( name varchar(32), age int(32), createTime datetime); MySQL批量插入数据脚本 #!/bin/bash i=1; MAX_INSERT_ROW_COUNT=$1; while [[ $i -le 阅读全文
posted @ 2020-12-11 12:00 高宏宇 阅读(774) 评论(0) 推荐(0) 编辑