
p.mysql
夜月独狼
费电话费嘎哈噶
展开
-
使用MySQL的LAST_INSERT_ID
LAST_INSERT_ID自动返回最后一个 INSERT 或 UPDATE 操作为 AUTO_INCREMENT 列设置的第一个发生的值. 参考这里 The ID that was generated is maintained in the server on a per-connection basis.LAST_INSERT_ID是基于单个connection的, 不可能被其它...原创 2011-10-10 00:04:53 · 124 阅读 · 0 评论 -
时间重叠的判断
[img]http://dl2.iteye.com/upload/attachment/0093/8519/745aec7f-fca8-3d32-937f-276e2716e9f4.jpg[/img]如上图,粗线是时间1细线是时间2时间重叠,只可能是以上四种情况。按照上到下的顺序,第一种是时间2的结束部分在时间1的之间第二种情况是时间2的开始部分在时间1的之间第三种情况...原创 2014-02-14 11:16:10 · 1230 阅读 · 0 评论 -
MySQL 事务没有提交导致 锁等待 Lock wait timeout exceeded
java.lang.Exception:### Error updating database. Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction### The error may involve defaultParameterMap### The error o...原创 2015-11-02 13:40:13 · 224 阅读 · 0 评论 -
MySQL 错误1418 的原因分析及解决方法
具体错误: 使用mysql创建、调用存储过程,函数以及触发器的时候会有错误符号为1418错误。ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL,or READS SQL DATA in its declaration and binary logging is enabled(you *migh...原创 2014-12-01 15:24:37 · 204 阅读 · 0 评论 -
mysql忘记root密码
http://jingyan.baidu.com/article/9c69d48f42166213c9024e02.html原创 2014-12-04 11:58:34 · 139 阅读 · 0 评论 -
linux安装mysql
http://blog.youkuaiyun.com/superchanon/article/details/8546254http://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.6/mysql-5.6.25-linux-glibc2.5-x86_64.tar.gz原创 2014-12-07 18:41:41 · 111 阅读 · 0 评论 -
mysql 保存表情符号 incorrect string value
1.mysql结构字段或者表,设置字段为字符编码:utf8mb4序列规则:utf8mb4_general_ci2.驱动版本需要支持utf8mb4,本人使用过的5.1.363.mysql配置[mysqld]增加character-set-server = utf8mb4collation-server = utf8mb4_general_ci...原创 2017-11-13 21:29:21 · 475 阅读 · 0 评论