<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[xiaodejun5241的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/xiaodejun5241</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; xiaodejun5241]]></copyright><item><title><![CDATA[python应用小例子]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/50151615</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/50151615</guid><author>xiaodejun5241</author><pubDate>Wed, 02 Dec 2015 19:55:43 +0800</pubDate><description><![CDATA[python ip ping]]></description><category></category></item><item><title><![CDATA[PL/SQL调用JAVA发布的Web Service示例]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/49305921</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/49305921</guid><author>xiaodejun5241</author><pubDate>Wed, 21 Oct 2015 16:08:25 +0800</pubDate><description><![CDATA[Java的web service核心代码如下：package com.tw.webservice; 
import javax.jws.WebService;@WebService(targetNamespace = “http://webservice.tw.com/“, endpointInterface = “com.tw.webservice.HelloWorld”, portName =]]></description><category></category></item><item><title><![CDATA[kill掉锁表和锁进程]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/36021457</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/36021457</guid><author>xiaodejun5241</author><pubDate>Mon, 30 Jun 2014 19:05:58 +0800</pubDate><description><![CDATA[select sess.sid, 
    sess.serial#, 
    lo.oracle_username, 
    lo.os_user_name, 
    ao.object_name, 
    lo.locked_mode 
    from v$locked_object lo, 
    dba_objects ao, 
    v$session se]]></description><category></category></item><item><title><![CDATA[Oracle返回结果集中任意一行的字段值——NTH_VALUE]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/8331587</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/8331587</guid><author>xiaodejun5241</author><pubDate>Wed, 19 Dec 2012 14:13:43 +0800</pubDate><description><![CDATA[之前就一直知道分析函数有First_value和Last_value，可以分别返回第一笔和最后一笔的值，抑或者用row_number /rank/ dense_rank再包一层取任意一行的值。
就寻思是不是也有函数可以直接返回任意行的值，果不其然，网络很强大，这个问题已经有人总结了..
NTH_VALUE登场..
在11gr2中，Oracle分析函数的功能进一步增强。

这篇介绍新增的分析函]]></description><category></category></item><item><title><![CDATA[数据库三大范式理解]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/8178389</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/8178389</guid><author>xiaodejun5241</author><pubDate>Tue, 13 Nov 2012 14:10:49 +0800</pubDate><description><![CDATA[先来篇轻松的..
http://www.php100.com/html/webkaifa/PHP/PHPyingyong/2009/0830/3245.html




官方定义：第一范式（1NF）：数据库表中的字段都是单一属性的，不可再分。
我的理解：第一范式这个不用說了，只要是关系数据库都满足第一范式

官方定义：第二范式（2NF）：数据库表中不存在非关键字段对任一候选关键字]]></description><category></category></item><item><title><![CDATA[JDB常用命令]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/8162923</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/8162923</guid><author>xiaodejun5241</author><pubDate>Thu, 08 Nov 2012 16:40:30 +0800</pubDate><description><![CDATA[** 命令列表 **
connectors                  - 列出此 VM 中可用的连接器和传送器

run [类 [参数]]             - 开始执行应用程序的主类

threads [线程组]            - 列出线程
thread             - 设置默认线程
suspend [线程 ID]           - 暂停线程（默认为所有线]]></description><category></category></item><item><title><![CDATA[Java中的值传递和引用传递]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/8089447</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/8089447</guid><author>xiaodejun5241</author><pubDate>Fri, 19 Oct 2012 13:40:58 +0800</pubDate><description><![CDATA[当一个对象被当作参数传递到一个方法后，此方法可改变这个对象的属性，并可返回变化后的结果，那么这里到底是值传递还是引用传递? 
    答:是值传递。Java 编程语言只有值传递参数。当一个对象实例作为一个参数被传递到方法中时，参数的值就是该对象的引用一个副本。指向同一个对象,对象的内容可以在被调用的方法中改变，但对象的引用(不是引用的副本)是永远不会改变的。




Java参数，不管]]></description><category></category></item><item><title><![CDATA[Oracle如何获取某年每月第N周星期X的所有日期]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/8076282</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/8076282</guid><author>xiaodejun5241</author><pubDate>Tue, 16 Oct 2012 11:54:00 +0800</pubDate><description><![CDATA[要求：列出2012年每月第二周星期二的日期
两种理解：
1.认为每周第一天为星期一(中国习惯)，且需求为第二周周二(非第二个周二)

--基本原理为用下周日之日期，利用decode判断是上推5日还是下推2日
select next_day(add_months(trunc(sysdate,'yyyy'),rownum-1),1)
    +decode(next_day(add_month]]></description><category></category></item><item><title><![CDATA[如何高效能拆分一个字段为多行]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/8012234</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/8012234</guid><author>xiaodejun5241</author><pubDate>Mon, 24 Sep 2012 11:57:58 +0800</pubDate><description><![CDATA[我本意是将表中的一个字段拆分成多行，例如'aaa,bbb'拆分为
'aaa'
'bbb'
现在测试如下：

with t1 as 
(
     select 3 c1,'eee,fff,ggg' c2 from dual UNION ALL 
     select 2 c1,'ccc,ddd' c2 from dual UNION ALL 
     SELECT 1 c1,'aaa]]></description><category></category></item><item><title><![CDATA[oracle自定义函数索引陷阱]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/7974388</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/7974388</guid><author>xiaodejun5241</author><pubDate>Thu, 13 Sep 2012 11:52:38 +0800</pubDate><description><![CDATA[来自《剑破冰山——ORACLE开发艺术》的结论：
使用函数索引一定要注意在修改函数代码后重建函数索引，否则，Oracle将使用这个函数索引查询出错误结果且不提示任何错误，这是非常为限度地。
以下为验证：
--构造表数据DROP TABLE t;
CREATE TABLE t(x NUMBER,y VARCHAR2(30));
INSERT INTO t SELECT ROWNUM,ROW]]></description><category></category></item><item><title><![CDATA[ORACLE索引列NULL值引发执行计划该表的测试示例]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/7955482</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/7955482</guid><author>xiaodejun5241</author><pubDate>Fri, 07 Sep 2012 16:25:55 +0800</pubDate><description><![CDATA[有时开发进行表结构设计，对表字段是否为空过于随意，出现诸如id1=id2，如果允许字段为空，因为oracle中空值并不等于空值，有可能得到意料之外的结果。除此之外，最关键的是，NULL会影响oracle的执行计划。
以下为NULL影响执行计划的测试示例。
/*1.构建test表，其中create table方式建立的test表结构object_id非空*，走索引/
SELECT Count(]]></description><category></category></item><item><title><![CDATA[效率测试小工具runstats学习及应用示例]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/7955142</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/7955142</guid><author>xiaodejun5241</author><pubDate>Fri, 07 Sep 2012 15:04:11 +0800</pubDate><description><![CDATA[runstats是tom写的一款很好的基准测试小工具。其安装及测试示例如下。
以下测试工具为SQL TOOLS。
1./*以sys登陆，给u1cp授权四个视图的权限*/
grant select on v_$latch to u1cp;
grant select on v_$mystat to u1cp;
grant select on V_$timer to u1cp;
grant]]></description><category></category></item><item><title><![CDATA[ORACLE RTRIM用法]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/7930393</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/7930393</guid><author>xiaodejun5241</author><pubDate>Fri, 31 Aug 2012 17:51:04 +0800</pubDate><description><![CDATA[以下是OCP教材中对该函数的描述
RTRIM(, ) takes two arguments, where c1 and c2 are character
strings. This function returns c1 without any trailing characters that appear
in c2. If no c2 characters are trailing c]]></description><category></category></item><item><title><![CDATA[oracle 利用connect by构造重复资料的方法]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/7891135</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/7891135</guid><author>xiaodejun5241</author><pubDate>Tue, 21 Aug 2012 14:31:49 +0800</pubDate><description><![CDATA[WITH t AS(
SELECT 'a' id FROM dual UNION ALL
SELECT 'b' FROM dual
)
SELECT DISTINCT level,t.* FROM t CONNECT BY LEVEL<=2;]]></description><category></category></item><item><title><![CDATA[add_months观sqltools和plsql developer之差异]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/7325914</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/7325914</guid><author>xiaodejun5241</author><pubDate>Tue, 06 Mar 2012 18:14:14 +0800</pubDate><description><![CDATA[SQL：SELECT To_Char(add_months('201203'||'01',1),'yyyyMM') FROM dual;

 sqltools

执行结果：

无报错，结果为 201204

plsql developer

执行结果：

报错，ORA-01861：文字与格式字符串不匹配

 

将SQL改为：SELECT To_Char(add_m]]></description><category></category></item><item><title><![CDATA[pl/sql Exception]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/7272662</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/7272662</guid><author>xiaodejun5241</author><pubDate>Sun, 19 Feb 2012 16:45:29 +0800</pubDate><description><![CDATA[http://tech.ccidnet.com/art/1105/20061227/987811_2.html]]></description><category></category></item><item><title><![CDATA[求分组中某个字段最大值]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/6591093</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/6591093</guid><author>xiaodejun5241</author><pubDate>Thu, 07 Jul 2011 18:23:14 +0800</pubDate><description><![CDATA[问题：表ANAME DATE COL1------------------------------A 2011/06/07 4A 2011/06/09 6A 2011/06/03 7B 2011/06/29 5B 2011/06/30 6求查询出每个NAME下的日期最大的结果NA]]></description><category></category></item><item><title><![CDATA[拆分字段，并将其行列转换]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/6589945</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/6589945</guid><author>xiaodejun5241</author><pubDate>Thu, 07 Jul 2011 11:39:47 +0800</pubDate><description><![CDATA[with t as(
         select '网站,短信,广告信息' ad from dual)
     select regexp_substr(ad,'[^,]+',1,level) ad    --用表达式拆分字符
       from t
    c]]></description><category></category></item><item><title><![CDATA[hashSet的存储机制]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/6448200</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/6448200</guid><author>xiaodejun5241</author><pubDate>Thu, 26 May 2011 18:12:00 +0800</pubDate><description><![CDATA[<br />1<br />当向集合Set中增加对象时，首先集合计算要增加对象的hashCode码，根据该值来得到<br />一个位置用来存放当前对象。<br /><br />如果在该位置没有一个对象存在的话，那么集合Set认为该对象在集合中不存在，直接<br />增加进去。<br /><br />如果在该位置有一个对象存在的话，接着将准备增加到集合中的对象与该位置上的对象<br />进行equals方法比较。<br /><br />如果该equals方法返回false，那么集合认为集合中不存在该对象，再进行]]></description><category></category></item><item><title><![CDATA[Listener]]></title><link>https://blog.csdn.net/xiaodejun5241/article/details/5472590</link><guid>https://blog.csdn.net/xiaodejun5241/article/details/5472590</guid><author>xiaodejun5241</author><pubDate>Sun, 11 Apr 2010 13:43:00 +0800</pubDate><description><![CDATA[Listener监听器，本身是observer观察者。监听程序特殊事件的发生。一般不使用Listener，可以用load-on-startup替代。 HttpSessionBindingListener和HttpSessionListener的区别:HttpSessionListener中有两个方法,sessionCreated()和 sessionDestroyed()。这两个方法可]]></description><category></category></item></channel></rss>