Click here to Skip to main content
15,911,890 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am getting SQl error -1007 when i am fetching data from cursor into a structure in C program .

Can someone suggest what can be the issue, I do not find much on NET about this error.

thanks in advance
Posted

1 solution

Oracle database error code ORA-01007 – variable not in select listOracle Database Error Code ORA-1007 Description:variable not in select list

Error Cause: A reference was made to a variable not listed in the SELECT clause.This can occur if the number passed for the position parameter is less than one or greater than the number of variables in the SELECT clause in any of the following calls: DESCRIBE, NAME, or DEFINE. In SQL*Forms or SQL*Report, specifying more variables in an INTO clause than in the SELECT clause also causes this error.


How to Solve :
Determine which of the problems listed caused the problem and take appropriate action.
 
Share this answer
 
Comments
srastogi85 10-Apr-13 0:01am    
thanks , I had one extra column in curson and into had 1 less column

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900