摘要: 有个项目因为有比较多的查询汇总,考虑到速度,所以使用了物化视图。简单的把用到的给整理了下。 先看简单创建语句: create materialized view mv_materialized_test refresh force on demand start with sysdate next 阅读全文
posted @ 2019-06-15 00:12 zhongzone 阅读(765) 评论(0) 推荐(0) 编辑
摘要: greatest函数功能简介:取几个数中的最大数 例:select greatest(24,32,56) from dual; 结果为:56 要把负数转化为0,即在负数和零之间取较大值就行 例:select greatest(-23,0) from dual; 结果为:0 阅读全文
posted @ 2019-06-15 00:09 zhongzone 阅读(4475) 评论(0) 推荐(0) 编辑