Oracle的相关操作

1、日期相加减

     原文来源:http://hulu26.iteye.com/blog/1020176

                       http://www.cnblogs.com/xiao-yu/archive/2011/05/24/2055967.html

 

2、decode

     原文来源:http://www.cnblogs.com/freespider/archive/2010/08/09/1795977.html

                       http://book.51cto.com/art/201007/212292.htm

                       http://hgdzhuanyong.blog.163.com/blog/static/11719138320106935315189/

 

3、trunc

     原文来源:http://www.cnblogs.com/xiaoyudz/archive/2011/03/18/1988467.html

 

4、Oracle 树操作(select…start with…connect by…prior)

start with connect by prior

    (select cr.region_id

          from cdc_region cr

         start with cr.region_id = '1199'

        connect by prior cr.region_id = cr.region_parent_id)

        http://www.cnblogs.com/linjiqin/archive/2013/06/24/3152674.html

 

5、merge into

 

6、case when

你可能感兴趣的:(oracle)