ORACLE 一些函数

来源:互联网 发布:stringbuffer数组 编辑:程序博客网 时间:2024/05/16 05:37
select replace(decode('12',0,'0.00',to_char(12,9999999999.99)),' ','')  from dual;
select * from(
  select  * from  t_user_login_log where  to_date(LOGIN_TIME,'yyyy.mm.dd hh24.mi.ss')  between (sysdate-1/24) and sysdate  order by LOGIN_TIME desc
        )   where rownum in(1,2,3);
   
      select to_char(12,'9999999.9') from dual;
      select to_char(12,'9999999999.99')  from dual;
      select replace('a b c',' ','')  from dual;
       select lpad('tech', 7,0) from dual;
      select rpad('tech', 7,0) from dual;

0 0
原创粉丝点击