Oracle SUBSTR InStr Usage

Source: Internet
Author: User
Tags oracle substr

Select Temp.short_pjt the original name,
Temp.fproject_name name after change,
Temp.fflow_person_name the author,
Temp.fcreate_date Date of submission
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 Usage

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.