Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NCLOB in a WHERE clause?

Status
Not open for further replies.

GaryAshford

Programmer
Jan 2, 2002
28
0
0
GB
Hi.
Can't find anything specific about this in the Oracle Docs:
Does anyone know if it is possible to bind a CLOB or an NCLOB column in the WHERE clause of a SELECT statement?
e.g.
SELECT * from table WHERE clobcol = :clobval

(I am writing an application using the OCI so the mechanics of defining and binding CLOBS/NCLOBS is already in place)
Currently, I am getting the error:

ORA-00932: inconsistent datatypes: expected - got CLOB
Note that the "expected" data type is missing.

I have successfully bound an OCILocator to the column yet this message is being returned from OCIStmtExecute.
Normal inserts/updates of CLOBS/NCLOBS are working OK.
Any help much appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top