Site icon IT Tutorial

ORA-01006: bind variable does not exist

I got ” ORA-01006: bind variable does not exist”  error in Oracle database.

 

ORA-01006: bind variable does not exist

 

Details of error are as follows.

ORA-01006: bind variable does not exist



 

 

bind variable does not exist

This ORA-01006 error is related to the bind variable does not exist

When you use Dynamic SQL Statement and forget to use the bind variable, you will get this error.

Don’t forget to use Bind variable as follows.

variable SYS_B_0 number; 
exec :SYS_B_0:= 63 
select * from customer where id= :SYS_B_0;




If you want to learn more details about Bind Variable, read the following posts.

Cursor Sharing and Bind Variable Usage Effect on Oracle Database Performance

 

Oracle Find queries not using bind variables Object Detail

 

 

 

 

 

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 

Exit mobile version