decode()与case then 学习与使用
摘要:今天做项目的时候遇到一个oracle数值转换的问题,按需求需要对匹配系统时间进行固定赋值,为了避免增加复杂度并易于维护,尽量不要使用存储过程或触发器,最好是使用oracle 自带函数。 如: SQL> select to_char(sysdate,'yyyyMMddhh24mi') as time
阅读全文
posted @ 2016-02-29 23:05
posted @ 2016-02-29 23:05
posted @ 2016-02-17 23:23
posted @ 2016-02-17 23:13
posted @ 2016-02-17 22:54