自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

z3h的专栏,Java+Oracle...大杂烩

http://blog.csdn.net/z3h

  • 博客(2)
  • 资源 (6)
  • 收藏
  • 关注

原创 Jsp连接数据库大全

Jsp连接数据库大全现在有好多初学jsp的网友经常会问数据库怎么连接啊,怎么老出错啊?所以我集中的在这写篇文章供大家参考,其实这种把数据库逻辑全部放在jsp里未必是好的做法,但是有利于初学者学习,所以我就这样做了,当大家学到一定程度的时候,可以考虑用MVC的模式开发。在练习这些代码的时候,你一定将jdbc的驱动程序放到服务器的类路径里,然后要在数据库里建一个表test,有两个字段比如为test1,

2005-06-13 13:19:00 1149

原创 利用oracle的动态PL/SQL对简单表达式求值

CREATE OR REPLACE FUNCTION POWER.GETRL(v_charrl in varchar2,v_noerror in char) RETURN floatIS v_rl float; v_cursorID integer; v_selectStmt varchar2 (2000); v_dummy integer;BEGIN begin  v_cursorID := D

2005-06-13 13:02:00 1565

Java中获取GBK编码汉字的拼音字头方法。(完整代码)

获取GBK字的拼音的首字母 由于数据较大,完整的GBK编码表按GBK规范分成3部分 GBK/2为与GB2312兼容的国标汉字部分,GBK/3和GBK/4为扩展汉字部分 每一部分都有自己的地址计算公式 若输入是acsii则返回同样的acsii 若输入是中文字符则返回拼音的首字母 若输入是中文字符但是该字符不知道如何发音,则返回空字符。 下载之前请查看:http://blog.csdn.net/z3h/archive/2011/04/05/6302890.aspx

2011-04-05

完整的Java表达式算法,扩充容易。

达式求值采用标准的算法。首先从最简单的表达式求值开始,到后面的高级表达式求值。大郅算法如下,首先将表达式转换为后序表达式,然后对后序表达式求值。表示式求值的关键步骤式表达式语义的解析和分割,而对于表达式的求值反而简单。在实际应用中,经常会有如下的场景:1、对一行数据进行运算,例如:总价=单价*数量。2、对集合数据进行运算,例如:平均销售价格=sum(单价*数量)/sum(数量)。3、对集合数据进行运算,例如:全校平均成绩=(sum(数学平均分)*sum(数学考试人数)+sum(语文平均分)*sum(语文考试人数))/(sum(数学考试人数+语文考试人数)。 下载之前请查看帖子之后在下载; http://blog.csdn.net/z3h/archive/2009/04/14/4074291.aspx

2009-04-25

java反编译工具jad 1.5.8g(可以反编译jdk1.5,1.6)

java反编译工具jad 1.5.8g支持 jdk1.5,jdk1.6。说明很多记住一个万能的命令基本就够用了。jad -sjava -r -8 -o **\*.class ---------------This is README file for Jad - the fast Java Decompiler.Jad home page: http://www.kpdus.com/jad.htmlCopyright 2001 Pavel Kouznetsov ([email protected]).0. Please read the disclaimer on the Jad home page.1. Installation.Unzip jad.zip file into any appropriate directory on your hard drive.This will create two files: - an executable file named 'jad.exe' (Windows *) or 'jad' (*n*x) - this README fileNo other setup is required.2. How to use JadTo decompile a single JAVA class file 'example1.class' type the following: jad example1.classThis command creates file 'example1.jad' in the current directory.If such file already exists Jad asks whether you want to overwrite it or not.Option -o permits overwriting without a confirmation.You can omit .class extension and/or use wildcards in the names ofinput files.Option -s allows to change output file extension: jad -sjava example1.classThis command creates file 'example1.java'. Be careful when usingoptions -o and -sjava together, because Jad can accidentally overwriteyour own source files.Jad uses JAVA class name as an output file name. For example, if classfile 'example1.class' contains JAVA class 'test1' then Jad will createfile 'test1.jad' rather than 'example1.jad'. If you want to specifyyour own output file name use the output redirection: jad -p example1.class > myexm1.javaOption -d allows you to specify another directory for output files,which are created, by default, in the current directory. For example: jad -o -dtest -sjava *.class (or jad -o -d test -s java *.class, which has the same effect)This command decompiles all .class files in the current directory <

2008-05-27

管理端口连接CurrPorts v.1.02

管理端口连接CurrPorts v.1.02<br>较老的软件,可以查看运行的软件占用的本地端口、连接的远端地址、端口、通讯协议等。并且可以杀死进程。<br>下面是软件中的进程信息。<br>==================================================<br>进程名称 : firefox.exe<br>ID : 1372<br>类型 : TCP<br>本机端口 : 1410<br>本机端口类型 : <br>本机地址 : 127.0.0.1<br>远程端口 : <br>远程端口类型 : <br>远程地址 : 0.0.0.0<br>连接状态 : 正在监听<br>进程路径 : C:\Program Files\Mozilla Firefox\firefox.exe<br>产品名称 : Firefox<br>文件描述 : Firefox<br>文件版本 : 1.8.1.12: 2008020121<br>公司 : Mozilla Corporation<br>进程创建时间 : 2008-5-27 20:51:30<br>用户名称 : sda\administrator<br>进程服务 : <br>==================================================<br><br>

2008-05-27

UncodeReverse

批量转换Uncode编码的文件。JDK自带的工具native2ascii可以将uncode编码的文件转换为本地编码的文件,但是不能批量转换文件。本工具可以批量转换所有的文件。<br>详见http://blog.csdn.net/z3h/archive/2008/01/25/2065912.aspx<br>

2008-01-25

Oracle自动备份脚本

通过windows的计划任务,完成Oracle数据的自动备份,利用rar按照系统日期重新命名压缩文件,并通过ftp上传到备份服务器。 具体参见http://blog.csdn.net/z3h/archive/2007/10/05/1812063.aspx 20080125补充一下:exp.cfg.txt中的buffer不要太大,我没有修改资源的权限。

2007-10-05

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除