摘要:insert into hr.job_historyselect * from hr.job_history as of timestamp to_timestamp('2007-07-23 10:20:00', 'yyyy-mm-dd hh24:mi:ss');
阅读全文
随笔分类 - Oralce 高级编程
摘要:insert into hr.job_historyselect * from hr.job_history as of timestamp to_timestamp('2007-07-23 10:20:00', 'yyyy-mm-dd hh24:mi:ss');
阅读全文
摘要:环境变量设置(在Sqlplus中执行)create or replace directory filepath as 'D:\ORACLEBACKUP';备份脚本:expdp system/123456@orcl directory=filepath dumpfile=UBSCORLUSER2015...
阅读全文
摘要:---------------------------------------------日期/时间函数-------------------------------------------------1: SYSDATE用来得到系统的当前日期SELECT SYSDATE FROM DUAL;--2...
阅读全文
摘要:TO_DATE格式(以时间:2007-11-02 13:45:25为例) Year: yy two digits 两位年 显示值:07 yyy three digits 三位年 显示值:007 yyyy four digits 四位年 显示值:2007 Month: mm number 两位月 显...
阅读全文
摘要:select to_char(trunc(add_months(last_day(sysdate), -1) + 1), 'yyyy-mm-dd') "本月第一天", to_char(last_day(sysdate), 'yyyy-mm-dd') "本月最后一天" --Oracle t...
阅读全文
摘要:create or replace procedure PROC_WF_SL_LCJD_UIiserrstr VARCHAR2(6000):='';errstr_sql VARCHAR2(6000):='';begin update /*+ BYPASS_UJVC */ ( select F_JDMC a , F_JDLX b ,F_LCNM c ,F_LCBH d ,F_LCMC e ,a1,b1,c1,d1,e1 from WF_SL_LCJD left join ( select n.data_id,n.node_desc a1,node_type b1,
阅读全文
|