
MySQL
caijian_0834
这个作者很懒,什么都没留下…
展开
-
通过JDBC使用批处理+事务,往数据库中插入百万级数据测试
最近再学习MySQL,有时候需要百万级/千万级的数据量来支撑测试,刚开始通过语句一条一条的插入,200W行插入了4个小时才搞定,所以写了如下代码来快速插入。单纯的JDBC,没有采用多线程,多线程的方式后期会更新,代码有缺陷的地方,希望评论指出。JdbcUtils就不贴出来了。本人自用笔记本,插入速度大概在 1W+条 / Spublic void commitBatch() {原创 2017-08-30 00:13:27 · 2160 阅读 · 0 评论 -
MySQL server version for the right syntax to use near 'type = InnoDB' at line 25
使用PowerDesigner 生成了sql脚本(摘抄部分):/*==============================================================*//* DBMS name: MySQL 5.0 *//* Created on: 2017/8/29 11:1原创 2017-08-29 11:38:14 · 801 阅读 · 0 评论 -
[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated c
[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ' which is not functionally dependent on columns in GROUP BY原创 2017-11-24 21:11:03 · 10078 阅读 · 2 评论