There are many times that all kinds of reasons can cause this problem. Now we will talk about a relatively small reason.
V_QUERY_SQL = ‘SELECT COUNT(DISTINCT (B.BATCH_ID)) FROM T_DD_RES T
JOIN T_DD_REQ Q
ON T.ID_DD_REQ = Q.ID
JOIN T_DD_BATCH B
ON T.BATCH_ID = B.BATCH_ID WHERE T.INSERT_TIME >= TRUNC(PI_DATE)
AND T.INSERT_TIME < TRUNC(PI_DATE) + 1
AND Q.REQUEST_DATE >= TRUNC(PI_DATE)
AND Q.REQUEST_DATE < TRUNC(PI_DATE) + 1
AND B.CDATE >= TRUNC(PI_DATE)
AND B.CDATE < TRUNC(PI_DATE) + 1’
OPEN PO_EXPCUR FOR V_QUERY_SQL USING …
The SQL in the stored procedure, such as the above code, throws the exception that ora-01006: bound variable does not exist when calling. When viewing the SQL statement, make sure that all variables exist. But why is this exception thrown?
Finally, we find out the reason, because the SQL statement returns an integer value, but here we give this value to the cursor, so we throw this exception. Change the cursor related statements to the following SQL, and everything will be OK.
EXECUTE IMMEDIATE V_QUERY_SQL INTO PO_AMOUNT USING…
Read More:
- How to Fix The error may exist in com/kuang/dao/UserMapper.xml
- error C4996: ‘scanf’: This function or variable may be unsafe. Consider using scanf_s instead.
- Global variable error: unboundlocalerror: local variable ‘l’ referenced before assignment
- Problems in compiling VTK with cmake: solutions to error configuration process, project files may be invalid
- Maven compilation error: package does not exist jar package does not exist
- To solve problems in cmake VTK: error configuration process, project files may be invalid
- error C4996: ‘scanf‘: This function or variable may be unsafe.Visual Studio Series compilers report errors using scanf function
- Error: global variable is ambiguous (conflict between using namespace STD and global variable)
- solve org.apache.ibatis . binding.BindingException : invalid bound statement (not found)
- [Solved] org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.zyh.springboot.
- 【error】postgresql relation does not exist
- U disk installation Linux system could not boot, / dev / root does not exist and the identified hard disk space is not available
- DNS name does not exist
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.xxx.dao.UserDao
- package xxx does not exist cannot find symbol
- Eclipse PyDev “interpreter does not exist in filesystem”
- Differences between shell script variable assignment and C language variable assignment
- dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
- Image input data check: Nan inf and do not exist
- java.lang.IllegalArgumentException: column ‘_id’ does not exist