0

I'm new to Oracle. I want to get size of binary data store in LONG RAW column, I execute this query

SELECT LENGTH(BINARY_DATA) FROM MY_DATATABLE WHERE ID = 58;

But I get error

ORA-00932: inconsistent datatypes: expected NUMBER got LONG BINARY

What wrong with my Query? Thanks.

Ryo
  • 995
  • 2
  • 25
  • 41

1 Answers1

0

The LENGTHB function is supported for single-byte LOBs only. It cannot be used with CLOB and NCLOB data in a multibyte character set.

LENGTH() expects CHAR as it's parameter.

enter image description here

Documentation:LENGTH

atokpas
  • 3,231
  • 1
  • 11
  • 22