摘要: 在oracle中写了个存储过程如下create or replace procedure P_SYSTEMNOTICE isbegin update sys_note set status='2' where to_date(enddate,'yyyy-MM-dd') < sysdate and status='1';end P_SYSTEMNOTICE;在oracle下面自己建个文件夹DBMS_Jobs这样就在oracle中建好了自动任务。 阅读全文
posted @ 2012-04-24 17:42 千里烟波226 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 一、在oracle中存在这样几种表的连接方式:1、等值连接:连接2张表其中有相同的字段2、不等值连接3、外连接:当条件不成立时,某些记录仍然显示4、自连接:自己和自己连接对与不等值的连接如:select e.ename,e.sal,s.gradefrom emp e,salgrade swhere e.sal between s.losal and s.hisal;外连接操作,当条件不成立时,结果中仍然希望某些记录显示左外连接:当条件不成立时,符号左边 的信息仍然显示,写法:where d.deptno=e.deptno(+);如:select d.deptno,d.dname,count(e 阅读全文
posted @ 2012-04-24 17:23 千里烟波226 阅读(453) 评论(0) 推荐(1) 编辑