Database: Oracle 11g
Environment: Windows server. SQLPlus.
I am trying to query for all the records where the char data length in a column is larger than 10K. The column data type is LONG (which seems to be obsolete: http://docs.oracle.com/cd/B28359_01/server.111/b28318/datatype.htm#CNCPT1830). Columns defined as LONG can store variable-length character data containing up to 2 gigabytes of information. The following post is somewhat addressing this issue: Select something that has more/less than x character I have followed the instructions without luck.
I have tried a few variations of the ‘length’ function but still getting errors:
SQL> select * from tbl_name where LEN(notes) > 1;
select * from tbl_name where LEN(notes) > 1
*
ERROR at line 1:
ORA-00904: "LEN": invalid identifier
SQL> select * from tbl_name where length(notes) > 1;
select * from tbl_name where length(notes) > 1
*
ERROR at line 1:
ORA-00932: inconsistent datatypes: expected NUMBER got LONG
Thanks in advance!