zoukankan      html  css  js  c++  java
  • informix到oracle移植函数

       infomrix                    oracle                                                                              说明
    month(date_expr)        to_number(to_char(date_expr,’MM’))                             返回相应月份
    time                             to_char(sysdate,’hh24:mi:ss’)                                           返回当前时间
    today                           sysdate                                                                            返回当前系统时间
    weekday(date_expr)    to_number(to_char(date_expr,’D’)-1)                              返回指定日期是星期几,0表示星期日
    year(date_expr)           to_number(to_char(date_expr,’YYYY’))                         返回指定日期对应
    str[index1,index2]          substr(str,index1,len)                                                       Index1和index2在Informix中必须是常量,而Oracle中index1,len可以是变量
    downshift(str)               lower(str)                                                                         返回小写字符串
    upshit(str)                    upper(str)                                                                         返回大写字符串
    length(str)                     length(str)                                                                         返回字符串长度
    current                         sysdate                                                                             返回当前日期和时间
    date(“12/13/1999”)     to_date(‘12/13/1999’, ’mm/dd/yyyy’)                               返回指定格式日期
    day(dtime_expr)           to_number(to_char(dtime_expr,’dd’))                               返回指定日期是某月的第几天
    extend(value[,first to last])   to_date(to_char(value, ’formate-mask’))                    调整日期时间精度
     
  • 相关阅读:
    计算机网络
    二叉树
    队列
    百度脑图-离线版(支持Linux、Mac、Win)
    nested exception is java.lang.NoClassDefFoundError: javax/xml/soap/SOAPElement
    手写注解实现SpringMVC底层原理(虽简单却五脏俱全《注重思路》)
    java异常
    JVM相关
    redis相关总结
    mysql 数据库相关
  • 原文地址:https://www.cnblogs.com/godwar/p/970244.html
Copyright © 2011-2022 走看看