随笔分类 - Mysql数据库
关于Mysql数据库学习和应用
摘要:JDBC批量插入数据优化,使用addBatch和executeBatch SQL的批量插入的问题,如果来个for循环,执行上万次,肯定会很慢,那么,如何去优化呢? 解决方案:用 preparedStatement.addBatch()配合preparedStatement.executeBatch(
阅读全文
摘要:MySQL 字符串拼接 在Mysql 数据库中存在两种字符串连接操作.具体操作如下 1. CONCAT(string1,string2,…) 说明 : string1,string2代表字符串,concat函数在连接字符串的时候,只要其中一个是NULL,那么将返回NULL.
阅读全文
摘要:解决服务器连接错误Host ‘XXX’ is not allowed to connect to this MySQL server 在“配置登陆信息和数据库(mysql)”连接中,出现“服务器连接错误Host 'XXX' is not allowed to connect to this MySQ
阅读全文
摘要:Mysql的序列 Mysql自带的序列:字段设置为int,属性里面选上“自动增长”即可; 在插入数据的时候可以不插入该字段的值,mysql会自动处理;
阅读全文