<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/wazj0517" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/wazj0517" type="application/rss+xml"></fs:self_link><lastBuildDate>Mon, 02 Jun 2008 17:00:00 GMT</lastBuildDate><title>eric的专栏</title><item><title>hibernate在sql server下分页的处理</title><link>http://blog.csdn.net/wazj0517/archive/2008/06/02/2503987.aspx</link><wfw:comment>comments/2503987.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/2503987.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2503987</trackback:ping><description>&amp;lt;p&amp;gt;今天要在sqlserver环境下做一个简单的增删改功能，要用到分页，开始直接用oracle数据库环境一直用的一个jdbc重构过的类处理，发现不行，才想起oracle和sqlserver的分页sql语句写法是很不一样的，于是打算google一下，紧接又想，何不先看看hibernate在sqlserver环境是怎么处理分页的(我这里用的是hibernate 3.0)。&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;先把hibernate配置文件的show_sql改成true，启动tomcat，在项目原来的一个功能里找到一个翻页的地方，比如每页显示两条，第一页的时候，hibernate的query语句是：SELECT TOP 2 * FROM&amp;amp;nbsp;&amp;amp;nbsp;... 恩，对的，看来hibernate还比较聪明，第一页直接用top语句，可是点下一页，当查询的记录应是3-4条时，hibernate的query语句是： SELECT TOP&amp;amp;nbsp;4 * FROM... 不理解了，难道hibernate这么笨吗，如果我要查的是第100万条到100万零10条&lt;img src =&quot;aggbug/2503987.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Tue, 03 Jun 2008 01:00:00 +0800</pubDate><author>eric</author><comments>http://blog.csdn.net/wazj0517/archive/2008/06/02/2503987.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/wazj0517/archive/2008/06/02/2503987.aspx</guid><dc:creator>eric</dc:creator></item><item><title>linux学习笔记</title><link>http://blog.csdn.net/wazj0517/archive/2007/05/21/1618895.aspx</link><wfw:comment>comments/1618895.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/1618895.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1618895</trackback:ping><description>一些常用的基本命令:
uname -a    查看内核版本       
ls -al    显示所有文件的属性
pwd         显示当前路径        
cd -    返回上一次目录     cd ~    返回主目录
date s      设置时间、日期          
cal      显示日历     cal 2006
bc          计算器具               
man  &amp; info     帮助手册
locale     显示当前字体     locale -a    所有可用字体     /etc/sysconfig/i18n设置文件
LANG=en    使用英文字体            
sync       将数据同步写入硬盘        
shutdonw -h now &amp; half &amp; poweroff  关机
reboot     重启                   
startx  &amp;  init 5   进入图形介面
/work  &amp; ?work    向上、下查找文档内容
&lt;img src =&quot;aggbug/1618895.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Mon, 21 May 2007 18:49:00 +0800</pubDate><author>eric</author><comments>http://blog.csdn.net/wazj0517/archive/2007/05/21/1618895.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/wazj0517/archive/2007/05/21/1618895.aspx</guid><dc:creator>eric</dc:creator></item><item><title>exp/imp工具的使用</title><link>http://blog.csdn.net/wazj0517/archive/2007/05/14/1608720.aspx</link><wfw:comment>comments/1608720.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/1608720.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1608720</trackback:ping><description>Export 和 Import 是一对读写Oracle数据的工具. Export 将 Oracle 数据库中的数据输出到操作系统文件中, Import 把这些文件中的数据读到Oracle 数据库中. Export/Import可以用来完成以下工作: 数据归档, 数据库升级, 备份数据库, 把数据从一个数据库移到另一个数据库, 回收数据库存储碎片等等. 

对于越来越大的数据库，特别是TB级数据库和越来越多数据仓库的出现，EXP/IMP越来越力不从心了，这个时候，数据库的备份都转向了RMAN和第三方工具。下面我们还是简要介绍一下EXP/IMP的使用。

 

使用方法：

Exp parameter_name=value

Or Exp parameter_name=(value1,value2……)

只要输入参数help=y就可以看到所有帮助.

 

如何使exp的帮助以不同的字符集显示：

set nls_lang=simplified chinese_china.zhs16gbk，通过设置环境变量，可以让exp的帮助以中文显示，如果set n&lt;img src =&quot;aggbug/1608720.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Tue, 15 May 2007 02:34:00 +0800</pubDate><author>eric</author><comments>http://blog.csdn.net/wazj0517/archive/2007/05/14/1608720.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/wazj0517/archive/2007/05/14/1608720.aspx</guid><dc:creator>eric</dc:creator></item><item><title>记几个容易忘的oracle 函数</title><link>http://blog.csdn.net/wazj0517/archive/2007/01/25/1493103.aspx</link><wfw:comment>comments/1493103.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/1493103.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1493103</trackback:ping><description>一般的to_char是这样用的to_char(sysdate,'YYYY-MM-DD hh:mi:ss AM') ，也有几个图书点的用法

 to_char(sysdate, 'dd') 查看今天是几号
  to_char(sysdate, 'ww') 查看这是这个月第几个星期
  to_char(sysdate, 'mm')  查看这是一年中第几个月
  to_char(sysdate, 'yyyy') 查看年份

last_day(to_date('2007-02-01','YYYY-MM-DD'))查看一个月的最后一天，add_months(sysdate,10)查看若干个月后的今天，next_day(sysdate,'星期五')给个日期查看后面的最近的星期几的日期，不过这个星期五要是换成英文居然有问题，汗，oracle中文支持也太好了吧！

下面贴个全的，需要的时候顺便查一下
&lt;img src =&quot;aggbug/1493103.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 25 Jan 2007 22:11:00 +0800</pubDate><author>eric</author><comments>http://blog.csdn.net/wazj0517/archive/2007/01/25/1493103.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/wazj0517/archive/2007/01/25/1493103.aspx</guid><dc:creator>eric</dc:creator></item><item><title>贴一个ant脚本</title><link>http://blog.csdn.net/wazj0517/archive/2007/01/18/1486449.aspx</link><wfw:comment>comments/1486449.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/1486449.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1486449</trackback:ping><description>最近没事，研究了下ant。

用ant的目的就是编译，打包(jar包)，自动生成帮助文档等。用ant首先要下载ant的安装包，完了系统的环境变量里面添加ant_home参数，path里添加ant/bin目录。如果是在eclipse里用的话就不需要了，只要工程目录下编辑一个build.xml就行，运行的时候点build.xml  右键---run as ---ant build，就可以运行了。
&lt;img src =&quot;aggbug/1486449.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 18 Jan 2007 19:13:00 +0800</pubDate><author>eric</author><comments>http://blog.csdn.net/wazj0517/archive/2007/01/18/1486449.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/wazj0517/archive/2007/01/18/1486449.aspx</guid><dc:creator>eric</dc:creator></item><item><title>java中究竟是传值还是传引用？</title><link>http://blog.csdn.net/wazj0517/archive/2006/12/31/1470507.aspx</link><wfw:comment>comments/1470507.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/1470507.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1470507</trackback:ping><description>在Java中，事实上底层工作原理不存在传引用的概念，这也象《Practical Java》中所说的那样，Java中只有传值。这句话理解起来需要费一定的周折。

熟悉C的程序员都用过指针，对指针可谓爱之深恨之切。指针是指向一块内存地址的内存数据（有些拗口），也就是说指针本身是一个占用4字节内存的int（32 位系统内），而这个int值恰恰又是另一块内存的地址。比如&quot;hello&quot;这个字串，存放在@0x0000F000这个地址到@0x0000F005这段内存区域内（包括0x00的结束字节）。而在@0x0000FFF0到@0x0000FFF03这四个字节内存放着一个int，这个int的值是 @0x0000F000。这样就形成了一个指向&quot;hello&quot;字串的指针。

在Java中，很多人说没有指针，事实上，在Java更深层次里，到处都是大师封装好的精美绝伦的指针。为了更容易的讲解Java中关于类和类型的调用，Java中出现了值与引用的说法。浅显的来说，我们可以认为 Java中的引用与C中的指针等效（其实差别非常非常大，但是为了说明我们今天的问题，把他们理解为等效是没有任何问题的）。

&lt;img src =&quot;aggbug/1470507.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Sun, 31 Dec 2006 18:09:00 +0800</pubDate><author>eric</author><comments>http://blog.csdn.net/wazj0517/archive/2006/12/31/1470507.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/wazj0517/archive/2006/12/31/1470507.aspx</guid><dc:creator>eric</dc:creator></item><item><title>复习一下log4j</title><link>http://blog.csdn.net/wazj0517/archive/2006/10/30/1356992.aspx</link><wfw:comment>comments/1356992.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/1356992.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1356992</trackback:ping><description>一个典型的log4j.properties的书写

log4j.rootCategory=FATAL, stdout,rfa //这里配置日志记录的级别，常用的有fatal,error,warn,info,debug,trace(全部大写)


log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p (%F:%L) - %m%n

//下面配置记录文件以及文件个数，大小

log4j.appender.rfa=org.apache.log4j.RollingFileAppender
log4j.appender.rfa.File=c:/mylog.txt
log4j.appender.rfa.MaxFileSize=1MB
log4j.appender.rfa.MaxBackupInde&lt;img src =&quot;aggbug/1356992.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Mon, 30 Oct 2006 23:04:00 +0800</pubDate><author>eric</author><comments>http://blog.csdn.net/wazj0517/archive/2006/10/30/1356992.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/wazj0517/archive/2006/10/30/1356992.aspx</guid><dc:creator>eric</dc:creator></item><item><title>JAVA完全控制Oracle中BLOB、CLOB说明</title><link>http://blog.csdn.net/wazj0517/archive/2006/10/19/1341074.aspx</link><wfw:comment>comments/1341074.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/1341074.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1341074</trackback:ping><description>网络上很多关于JAVA对Oracle中BLOB、CLOB类型字段的操作说明，有的不够全面，有的不够准确，甚至有的简直就是胡说八道。最近的项目正巧用到了这方面的知识，在这里做个总结。
 &lt;img src =&quot;aggbug/1341074.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 19 Oct 2006 23:31:00 +0800</pubDate><author>eric</author><comments>http://blog.csdn.net/wazj0517/archive/2006/10/19/1341074.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/wazj0517/archive/2006/10/19/1341074.aspx</guid><dc:creator>eric</dc:creator></item><item><title>java程序员面试之150++</title><link>http://blog.csdn.net/wazj0517/archive/2006/10/19/1341000.aspx</link><wfw:comment>comments/1341000.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/1341000.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1341000</trackback:ping><description>一、Java基础方面

1、作用域public,private,protected,以及不写时的区别

　　答：区别如下：

　　作用域       当前类      同一package      子孙类       其他package
　　public         √            √             √              √
　　protected      √            √             √              ×
　　friendly       √            √             ×              ×
　　private        √            ×             ×              ×

　　不写时默认为friendly

&lt;img src =&quot;aggbug/1341000.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 19 Oct 2006 22:24:00 +0800</pubDate><author>eric</author><comments>http://blog.csdn.net/wazj0517/archive/2006/10/19/1341000.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/wazj0517/archive/2006/10/19/1341000.aspx</guid><dc:creator>eric</dc:creator></item><item><title>java对excel表格的处理</title><link>http://blog.csdn.net/wazj0517/archive/2006/09/30/1310821.aspx</link><wfw:comment>comments/1310821.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/1310821.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1310821</trackback:ping><description>项目中需要将结果集保存到一个excel表格中， 下面是我的实现方法

先要把jxl.jar包下载copy到classpath路径下

public class SpcpExcel {

    //os应为response.getOutputStream(),list为需要写入表格的数据集，
    public static void writeExcel(OutputStream os, List list) throws Exception {
        WritableWorkbook wwb = Workbook.createWorkbook(os);
        WritableSheet ws = wwb.createSheet(&quot;sheet1&quot;,0);//设置表单的名称
        if(list!=null){
            Label labela = new Label(0,0,&quot;栏目名称&quot;);   //零列零行
            ws.addCell(labela);
            Label l&lt;img src =&quot;aggbug/1310821.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Sat, 30 Sep 2006 18:26:00 +0800</pubDate><author>eric</author><comments>http://blog.csdn.net/wazj0517/archive/2006/09/30/1310821.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/wazj0517/archive/2006/09/30/1310821.aspx</guid><dc:creator>eric</dc:creator></item></channel></rss>