ORA-00932: inconsistent datatypes: expected - got BLOB
994207May 10 2013 — edited May 10 2013I havev a table with two columns, blob with datatype blob and text with datatype varchar2(20).
It is empty or filled with one row that has NULL/"some text". I run this query on it: "SELECT * FROM ( SELECT blob FROM okay ORDER BY blob DESC ) WHERE ROWNUM <= 1"
But I get the error "ORA-00932: inconsistent datatypes: expected - got BLOB"
What's a "-" type? Why was that expected?
I had the query translated from this TSQL:
"SELECT TOP(1) blob FROM okay ORDER BY blob DESC"