SELECT segment_name TABLE_NAME, SUM(bytes) table_size
FROM USER_SEGMENTS
WHERE SEGMENT_TYPE = 'TABLE'
GROUP BY segment_name
ORDER BY segment_name ASC;
INSERT INTO R_LOG (DOMAINID, SOURCENAME, TERMINALID,userid, DETAILTEXT)
VALUES (1, 'tables_job', 'TEST', 'GUEST',?????);
I want to store the query output (two columns) in a DETAILTEXT column (single column) of R_LOG table
SELECT segment_name TABLE_NAME, SUM(bytes) table_size
FROM USER_SEGMENTS
WHERE SEGMENT_TYPE = 'TABLE'
GROUP BY segment_name
ORDER BY segment_name ASC;
This part of my code is working totally fine - but I'm not able to insert the value.
Any help will be appreciated