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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

selectblob returns error ORA-00936 missing expression

Status
Not open for further replies.

oke09081

Programmer
Jun 2, 2008
5
US
I am trying to do a simple select of a blob field using powerscript and am getting a return error code of -1 with the error message ORA-00936 missing expression. I am using PB 10.2.0 and Oracle 10.1.2.

blob lbl_pdffile

SELECTBLOB pdffile
into :lbl_pdffile
from pdf_files
where file_id = 1;

Anyone have any ideas why I am getting this error.
 
After the WHERE clause (and before the semicolon), you need a USING statement. If you have custom transaction objects setup, then it will be: USING Custom_Trans ; If you're using SQLCA then it will simply be: USING SQLCA ;
 
I added the using statement after the where clause but still get the same Oracle error.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top