Share this page

# Example: lrd_stmt

In the following example, lrd_stmt sets a SELECT statement to retrieve all database records that contain a value of 1000 or greater in their SAL column.

     /* Set up and execute the SQL statement.*/

    lr_think_time(76);

    lrd_stmt(Csr1, "select ename from emp where (sal>=1000)\n", -1, 1, 1, 0);

    lrd_bind_col(Csr1, 1, &D21_ENAME, 0);

    lrd_exec(Csr1, 0, 0, 0, 0);

    lrd_fetch(Csr1, -3, 1, 0, PrintRow24, 0);

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: