Oracle 11G.
I am trying to run this query against the dictionary which has a column of long data type. I want to pull the data out so I can use it. I get an error of illegal use of long data type. Is there a function to pull off the 1st say 100 characters. Toad will interpret the column and display it so there must be some easy way to do this. Thank you for the assistance.
select
table_owner,
table_name,
partition_name,
high_value,
DBMS_LOB.SUBSTR(high_value, 100,1), --column errs.
num_rows,
blocks
from sys.all_tab_partitions
where table_owner = 'SHD'
I am trying to run this query against the dictionary which has a column of long data type. I want to pull the data out so I can use it. I get an error of illegal use of long data type. Is there a function to pull off the 1st say 100 characters. Toad will interpret the column and display it so there must be some easy way to do this. Thank you for the assistance.
select
table_owner,
table_name,
partition_name,
high_value,
DBMS_LOB.SUBSTR(high_value, 100,1), --column errs.
num_rows,
blocks
from sys.all_tab_partitions
where table_owner = 'SHD'