摘要: SELECT trim(to_char(round(35363.2224, 2), '000000000.00')) FROM dual; 阅读全文
posted @ 2012-02-06 15:26 小波Ooo 阅读(218) 评论(0) 推荐(0) 编辑
摘要: replace('data1','data2','data3');用data3 替换 data1 中的 data2 字符串;例:replace('abcdefg','a','x');结果:xbcdefg 阅读全文
posted @ 2012-02-06 14:39 小波Ooo 阅读(153) 评论(0) 推荐(0) 编辑
摘要: select to_char(sysdate, 'yyyy') from dual;select to_char(sysdate, 'mm') from dual;select to_char(sysdate, 'dd') from dual; 阅读全文
posted @ 2012-02-03 11:08 小波Ooo 阅读(126) 评论(0) 推荐(0) 编辑
摘要: select round(34.44,0) from dual结果:34select round(34.76,0) from dual结果:35select mod(103,10) from dual结果:3 阅读全文
posted @ 2012-02-03 11:05 小波Ooo 阅读(421) 评论(0) 推荐(0) 编辑
摘要: select trunc(last_day(sysdate)) - to_date(to_char(sysdate, 'yyyy-mm') || '-01', 'yyyy-mm-dd') + 1 from dual 阅读全文
posted @ 2012-01-11 15:33 小波Ooo 阅读(125) 评论(0) 推荐(0) 编辑
摘要: declare v_test varchar2(200); v_num number;begin v_test := -1; v_num := -1;if v_test = v_num then dbms_output.put_line('Y'); else dbms_output.put_line('B');end if;end; 阅读全文
posted @ 2011-12-29 17:25 小波Ooo 阅读(1185) 评论(0) 推荐(0) 编辑
摘要: procedure test(p_test number) isPRAGMA AUTONOMOUS_TRANSACTION;begin…………commit;end ; 阅读全文
posted @ 2011-12-29 15:55 小波Ooo 阅读(151) 评论(0) 推荐(0) 编辑
摘要: select level level_num,b.* from fnd_flex_value_children_v b where b.flex_value_set_id= 1014868 and b.parent_flex_value <>'T' connect by prior b.parent_flex_value = b.flex_value start with b.flex_value ='100110210'; 阅读全文
posted @ 2011-12-14 16:17 小波Ooo 阅读(228) 评论(0) 推荐(0) 编辑
摘要: antis中默认的分派是账号,账号只能是英文和数字,姓名则可以是汉字; 但是分派的时候则默认分派给账号,这样比较难识别,如下更改可以分派给 姓名:C:\Program Files\EasyPHP-5.3.8.0\www\mantis\mantisbt-1.2.8\ (路径是安装的路径)下config_inc.php中 加入:$g_show_realname = ON; 阅读全文
posted @ 2011-12-07 17:50 小波Ooo 阅读(1764) 评论(0) 推荐(1) 编辑
摘要: 语法:LPAD(expr,n[,pad]) RPAD(expr,n[,pad])登录sqlplus测试SQL*Plus: Release 11.2.0.1.0 Production on 星期三 11月 16 16:26:42 2011Copyright (c) 1982, 2010, Oracle. All rights reserved.请输入用户名: /as sysdba连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OL... 阅读全文
posted @ 2011-11-16 16:33 小波Ooo 阅读(2839) 评论(0) 推荐(0) 编辑