Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to sort based on long datatype

TanmoyMoulikAug 29 2016 — edited Aug 30 2016

Hi Team,

I want to sort the data based on long datatype.

I am using Oracle table to find the partition table information.

SELECT TABLE_NAME,

PARTITION_NAME,

high_value

FROM USER_TAB_PARTITIONS

WHERE TABLE_NAME='DETAIL_MICROWAVE_HIST'

Now I want to sort the value based on high_value.However when I am modifiying the query to this

SELECT TABLE_NAME,

PARTITION_NAME,

high_value

FROM USER_TAB_PARTITIONS

WHERE TABLE_NAME='DETAIL_MICROWAVE_HIST'

order by high_value

Getting this value

ORA-00997: illegal use of LONG datatype

00997. 00000 -  "illegal use of LONG datatype"

*Cause:   

*Action:

Error at Line: 54 Column: 1

How to overcome this error.

Thanks,

Tanmoy

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 27 2016
Added on Aug 29 2016
9 comments
3,502 views