Example: lrd_assign_bind

In the following example, lrd_assign_bind assigns the value 70 to the placeholder newemp. It then binds the host variable newemp_D4 to the placeholder.

 /* Insert a new record into the employee table using the placeholder newemp for the id. */
lrd_stmt(Csr1, "insert into employee values ('Joe Taylor',:newemp," "'1-JAN-97','R&D',22)", -1, 0 /*Non deferred*/, 2 /*Ora V7*/, 0);
 /* Assign the constant 70 to the placeholder and bind the host variable to the placeholder. */
lrd_assign_bind(Csr1, "newemp", "70", &newemp_D4, 0, 0, 0);
lrd_exec(Csr1, 0, 0, 0, 0, 0);