Example: lrd_exec

In the following example, a SELECT statement retrieves all of the database records in the employee table. lrd_exec executed the statement after the host variables, NAME_D11 and ID_D12, were bound.

 /* Set up and execute an SQL statement.*/
lrd_stmt(Csr1, "select * from employee\n", -1, 1 /*Deferred*/,1 /*Dflt Ora Ver*/, 0);
lrd_bind_col(Csr1, 1, &NAME_D11, 0, 0);
lrd_bind_col(Csr1, 2, &ID_D12, 0, 0);
lrd_exec(Csr1, 0, 0, 0, 0, 1);
lrd_fetch(Csr1, -3, 15, 0, PrintRow14, 0);