随笔分类 -  Oracle

摘要:1.网络服务安全设置 Oracle 11gR2的版本,可能导致邮件发送失败(ORA-24247: network access denied by access control list (ACL))或者邮件没有发送出去。11g采用了更严格的网络服务安全控制ACLs(Access Control L 阅读全文

posted @ 2019-08-21 17:49 沈恩忍 阅读(1089) 评论(0) 推荐(0)

摘要: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)

摘要:本文转自:http://blog.chinaunix.net/uid-17079336-id-2832443.html1、创建表的同时创建主键约束(1)无命名create table student (studentid int primary key not null,studentname va... 阅读全文

posted @ 2014-09-23 13:29 沈恩忍 阅读(995) 评论(0) 推荐(0)

摘要:如TEST表有3表字段 id name address如下:id name address1 小二 北京2 小二 东京3 小二 北京4 小刘 南京如要查出name 和 address 重复的数据。select * from ( select name,address,count(0)... 阅读全文

posted @ 2014-09-10 16:58 沈恩忍 阅读(201) 评论(0) 推荐(0)

摘要:--查询某个表是否有唯一主键select cu.* from user_cons_columns cu, user_constraints au where cu.constraint_name = au.constraint_name and au.constraint_type = 'P' an... 阅读全文

posted @ 2014-09-04 13:48 沈恩忍 阅读(3031) 评论(0) 推荐(0)

导航