Example: lrd_ora8_bind_placeholder

In the following example, lrd_assign assigns values to the host variable F_D1 and L_D2. The lr_ora8_bind_placeholder function binds the host variable to the placeholders F and L.

 /* Insert employee data into the employee table. */
lrd_stmt(OraStm3, &OraDef2, "insert into employees (emp_firstname,emp_lastname)", "values(:F,:L)", -1, 1 /*Deferred*/, 1 /*Dflt Ora Ver*/, 0);
lrd_assign(&F_D1, "Jim", "", 0, 0);
lrd_assign(&F_D1, "Bob", "", 1, 0);
lrd_assign(&F_D1, "Mike", "", 2, 0);
lrd_ora8_bind_placeholder(OraStm3, &OraBind2, "F", &F_D1, 0, 0, 0);
lrd_assign(&L_D2, "Smith", "", 0, 0);
lrd_assign(&L_D2, "Jones", "", 1, 0);
lrd_assign(&L_D2, "Anderson", "", 2, 0);
lrd_ora8_bind_placeholder(OraStm3, &OraBind2, "L", &L_D2, 0, 0, 0);