https://codingstill.com/2016/05/convert-long-raw-fields-to-varchar2-in-oracle-with-plain-sql/
SELECT partition_name ,'' || regexp_substr(
extractvalue(
dbms_xmlgen.getxmltype('SELECT high_value
FROM all_tab_partitions
WHERE table_name=''' ||
TABLE_NAME || ''' AND
table_owner = ''' ||
table_owner || ''' AND
partition_name = ''' ||
partition_name || ''''
),
'//text()'
),
'''.*?''')
FROM all_tab_partitions
WHERE TABLE_NAME ='MY_TABLE_NAME' ;
Niciun comentariu:
Trimiteți un comentariu