码迷,mamicode.com
首页 > 数据库 > 详细

oracle substr instr 用法

时间:2016-11-08 13:44:10      阅读:232      评论:0      收藏:0      [点我收藏+]

标签:where   提交   head   desc   rom   str   subject   and   date   

select temp.short_pjt 原来的名称,
       temp.fproject_name 变更后名称,
       temp.fflow_person_name 提交人,
       temp.fcreate_date 提交日期
  from (SELECT head.fsubject,
               t.fflow_person_name,
               t.fcreate_date,
               substr(head.fsubject,
                      instr(head.fsubject, ‘~‘, 1) + 1,
                      length(head.fsubject)) short_pjt,
               head.fproject_name
          FROM cop_cop_task t, cop.COP_FLOW_HEADER head
         where 1 = 1
           and t.fmodule_sys_sq = head.fmodule_sys_sq  
           and t.fflow_type_code = ‘PROJECT_RENAME‘) temp
 group by temp.short_pjt,
          temp.fflow_person_name,
          temp.fcreate_date,
          temp.fproject_name
          order by temp.fcreate_date desc

oracle substr instr 用法

标签:where   提交   head   desc   rom   str   subject   and   date   

原文地址:http://www.cnblogs.com/albert-think/p/6042572.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!