Skip to content

Oracle query all_tab_columns.data_default (type LONG)

I have run this query:

But it throws an error at column DATA_DEFAULT:

ORA-00932: inconsistent datatypes: expected CHAR got LONG
00932. 00000 – “inconsistent datatypes: expected %s got %s”

How can I fix that?

Thanks!

Advertisement

Answer

You can’t do anything with a LONG. It’s a PITA that Oracle still use them in the data dictionary.

You can use XML:

From 12.1 you can write your own lookup function inline:

Or of course make a standalone function or package function that does the same thing.

User contributions licensed under: CC BY-SA
4 People found this is helpful