This illustration describes using OCIBindByName() to associate placeholders with program variables. It shows one SQL statement: INSERT INTO emp VALUES (:empno, :ename, :job, :sal, :deptno). The call OCIBindByName() associates the placeholders in the SQL statement as follows:

Placeholder:empno:ename:job:sal:deptno
Address&empnoenamejob&sal&deptno
Data Typeinteger stringstringintegerinteger
Lengthsizeof(empno)strlen(ename)+1strlen(job)+1sizeof(sal)sizeof(deptno)