PL/SQL (MOSC)

MOSC Banner

How to convert a Row output of a sql query into columns

edited Nov 2, 2022 3:52PM in PL/SQL (MOSC) 1 commentAnswered

I am trying to generate a report which is pulling information from a table which has CLOB 

but it gives result in single row including all columns because its a CLOB but i need separate columns as output. 


This is the query I am using 


SELECT TARGET_NAME,JOB_TIME,ACCOUNT_DETAILS FROM (

SELECT '===============' TARGET_NAME,'================' JOB_TIME,'==================================================' ACCOUNT_DETAILS FROM DUAL

UNION

SELECT

TARGET_NAME,

TO_CHAR(END_TIME,'DD-MON-RRRR HH24:MI:SS') JOB_TIME,

TO_CHAR(REGEXP_SUBSTR(mh.OUTPUT,'[^@]+', 1,ct.x)) ACCOUNT_DETAILS

FROM MGMT$JOB_STEP_HISTORY mh,

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center