- 博客(5)
- 资源 (5)
- 收藏
- 关注
原创 MYSQL获取自增主键【4种方法】
通常我们在应用中对mysql执行了insert操作后,需要获取插入记录的自增主键。本文将介绍java环境下的4种方法获取insert后的记录主键auto_increment的值:通过JDBC2.0提供的insertRow()方式通过JDBC3.0提供的getGeneratedKeys()方式通过SQL select LAST_INSERT_ID()函数通过SQL @@IDENTITY
2013-07-17 13:28:31 55651 3
原创 一片面包引起的谬论
网上流传这么一个说法:为了你和你的家人,请不要再吃面包了。 骤眼看去觉得似乎有道理,但按大多数人的常识,显而意见这说法就是不科学,但哪里出问题了呢?最近看了《统计数字会说慌》,借此分析下这个可笑的结论。 按第1条结论,似乎面包是导致犯罪的原因。但是,我们姑且不看98%这个数字,单看犯罪和面包,难道犯罪者实施犯罪的必要条件是吃面包?面包是个日常广泛通用的食品,从
2013-07-11 13:50:11 1715
转载 我眼中的技术高手
今天发了一条微博:会原生 JavaScript 不代表什么,懂 jQuery、YUI 等才真正好。怎么这么多人有原生主义情结呢?走出那点小天地,海阔天高。很多人已经猜出,这是为了晚上的文章而发,提前收集大家的想法。这个话题,很早就想谈,肯定会引起口水仗,但有些事不辩不明,不理不清,与其和谐社会,不如辛亥革命。奇怪的现象平时工作,时不时能听到一些困惑、感慨:
2013-07-10 10:01:37 1197
原创 eclipse使用小技巧集合
1.eclipse中对mybatis的mapper xml验证太慢打开浏览器,把mapper对应的dtd下载下来,如把http://mybatis.org/dtd/mybatis-3-mapper.dtd下载到本地。打开eclipse的window->perferences->xml->xml catalog->add把刚才下载的本地dtd路径写到Location中Key type选择
2013-07-08 13:14:18 1136
原创 Linux下最好用的pdf查看器:Okular
Linux下最好用的pdf查看器foxit reader,adobe reader?不是,应该是Okular!它相比我们前面2个,突出的功能是能进行comment on, highlight等。而且,还是免费的。官网下载地址:http://okular.kde.org/download.phpmint14上的截图:功能:兼容多种格式包括 PDFs, EPUB ebo
2013-07-02 18:36:17 19339
Ubuntu8.04速成手册
2009-06-18
Data Structures and Algorithm Analysis in C
2009-05-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人