随笔分类 -  PL/SQL

摘要:select gr,num,dt,(select bys from test where gr=b.gr and dt=b.dt) bysfrom ( select gr,count(0) num,max(dt) dt from test group by gr) b//如果有重复项,可用如下语句(... 阅读全文

posted @ 2015-12-15 12:49 沈恩忍 阅读(16668) 评论(0) 推荐(0)

摘要:步骤如下1.直接在SQL命令中写入JAVA代码(用SYS帐号执行,不然权限等太麻烦)create or replace and resolve java source named udpasimport java.net.DatagramPacket;import java.net.Datagram... 阅读全文

posted @ 2015-10-29 12:53 沈恩忍 阅读(409) 评论(0) 推荐(0)

摘要:代码如下declare l_ip varchar2(15);begin if OWA_UTIL.GET_CGI_ENV('X-FORWARDED-FOR') is not null then l_ip:= OWA_UTIL.GET_CGI_ENV('X-FORWARDED-FOR... 阅读全文

posted @ 2015-10-29 12:39 沈恩忍 阅读(1175) 评论(0) 推荐(0)

摘要:1.直接在 SQL Developer中写入代码create or replace and compile java source named "HelloWorld"aspackage com.test;public class HelloWorld {public static String s... 阅读全文

posted @ 2015-10-27 17:24 沈恩忍 阅读(524) 评论(0) 推荐(0)

导航