2014年2月28日

java 调用oracle 分页存储过程 返回游标数据集

摘要: 1.分页类package org.zh.basic;/** * 页面类 * * @author keven * */public class PageInfo { // 定义 private String p_tableName; // -表名 private String p_strWhere; // --查询条件 private String p_orderColumn; // --排序的列 private String p_orderStyle; // --排序方式 private int p_curPage; // --当前页 privat... 阅读全文

posted @ 2014-02-28 16:25 呼嘎嘎 阅读(3762) 评论(1) 推荐(0) 编辑

2013年7月26日

JDBC链接

摘要: //1. MySQL(http://www.mysql.com)mm.mysql-2.0.2-bin.jar Connection con = null; Class.forName( "org.gjt.mm.mysql.Driver" );// 加载驱动程序 con = DriverManager.getConnection( "jdbc:mysql://DbComputerNameOrIPAddr:3306/DatabaseName", UserName, Password ); //2. PostgreSQL(http://www.de.postg 阅读全文

posted @ 2013-07-26 15:31 呼嘎嘎 阅读(331) 评论(0) 推荐(0) 编辑

2013年6月14日

oracle 统计结合横向和纵向统计得结果

摘要: select nvl(t.NAME, '合计') NAME, sum(decode(t.vehicletypename, 'A1', j.totalhours, 0.00)) as A1, sum(decode(t.vehicletypename, 'B2', j.totalhours, 0.00)) as B2, sum(decode(t.vehicletypename, 'C1', j.totalhours, 0.00)) as C1, sum(decode(t.vehicletypename, 'C2', j 阅读全文

posted @ 2013-06-14 10:34 呼嘎嘎 阅读(1843) 评论(0) 推荐(2) 编辑

Oracle数据库密码有效期参数

摘要: Oracle数据库密码有效期参数1.查看数据库用户对应的概要文件。SQL>select username,profile from dba_users;检查显示信息中历史库用户sersv对应的profile。一般都为DEFAULT,如下所示。USERNAME PROFILE------------------------------ ------------------------------SYSTEM DEFAULTSYS DEFAULT……sersrv DEFAULT2.检查概要文件(默认为d... 阅读全文

posted @ 2013-06-14 09:34 呼嘎嘎 阅读(5225) 评论(0) 推荐(0) 编辑

2013年6月6日

ORACLE对身份证号码处理相关的SQL【收藏】

摘要: /*ORACLE对身份证号码处理相关的SQL汇总 身份证号码算法及应用场景: 工作实践总结,与大家分享快乐,并请高人批评指正,努力改进: 目前我国大量存在着正在有效期的15位身份证,虽然国家在推行二代身份证,但尚未发现强行要求全国人民更换未到期的15位身份证的官方声明或公告。 扯远了:),总之合法的15位身份证号码将在今后一段时间内继续存在下去。 另外,项目中往往有着大量的历史数据,我们的一个系统中15位身份证所占比重很大,因此系统必须实现对两套身份证编码的职能处理,并支持另外一种特殊证件类型:军官证/警官证。本文重点讨论15... 阅读全文

posted @ 2013-06-06 09:35 呼嘎嘎 阅读(7920) 评论(0) 推荐(1) 编辑

2013年3月27日

Flex 创建有滚动条Panel

摘要: <?xml version="1.0" encoding="utf-8"?><s:Module xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="605" alpha="1.0" percentHeight=" 阅读全文

posted @ 2013-03-27 09:35 呼嘎嘎 阅读(1443) 评论(0) 推荐(0) 编辑

2013年3月20日

Oracle10G各版本下载以及补丁地址

摘要: 本文转自网络。http://blog.chinaunix.net/uid-20802110-id-3338656.html记录一下ORACLE 10gR2的软件下载地址,备用。下载OTN上的这些软件,你需要一个OTN免费帐号,不过如果通过迅雷进行下载,就不用登陆OTN了:Oracle Database 10g Release 2 (10.2.0.1.0) Enterprise/Standard Edition for Microsoft Windows (32-bit)http://download.oracle.com/otn/nt/oracle10g/10201/10201_databas 阅读全文

posted @ 2013-03-20 13:45 呼嘎嘎 阅读(2811) 评论(0) 推荐(0) 编辑

2013年2月21日

oracle 存储过程分页

摘要: --------------------包头---------------------------create or replace package pages is type type_cur is ref cursor; procedure p_pagintion(psql in varchar2, pfrist in number, psize in number, pcount out number, ... 阅读全文

posted @ 2013-02-21 15:14 呼嘎嘎 阅读(255) 评论(0) 推荐(0) 编辑

2012年12月25日

JavaScript按特定条件截取字符串

摘要: View Code <script type="text/livescript"> function GetTrainAndStudentName() { var strValue=document.getElementById("divp").innerText; var v1 = "教练员:"; var v2 = "学员:"; var _strValue = strValue; alert(_strValue.indexOf("教练员:")); v... 阅读全文

posted @ 2012-12-25 08:39 呼嘎嘎 阅读(810) 评论(0) 推荐(0) 编辑

2012年12月4日

delphi webbrowser与网页相互操作

摘要: 1.delphi 调用js,触发就是方法:var win: IHTMLWindow2;beginwin := IHTMLDocument2(wbmap.Document).parentWindow;Win.execScript('addAllPoits(' + QuotedStr(strValue) + ')', 'javascript');end;addAllPoits:js的方法strValue:方法参数;'javascript':脚本语言;2.js页面操作触发delphi程序写的方法,主要原理是:修改window.exter 阅读全文

posted @ 2012-12-04 09:27 呼嘎嘎 阅读(2975) 评论(1) 推荐(0) 编辑

导航