Main Page | Modules | File List | Globals | Related Pages | Examples

ex4.c

Example for using sqlo_open

/* $Id: ex4.c 221 2002-08-24 12:54:47Z kpoitschke $ */
#include <stdio.h>
#include <stdlib.h>
#include "examples.h"

sqlo_stmt_handle_t open_cursor(sqlo_db_handle_t dbh)
{
  sqlo_stmt_handle_t sth;
  int argc = 0;
  const char * argv[1];
  
  argv[argc++] = "1000";

  if ( 0 > (sth = (sqlo_open(dbh, "SELECT ENAME, SAL FROM EMP WHERE SAL >= :1", 
                             argc, argv)))) {
    error_exit(dbh, "sqlo_open");
  }
  return sth;
}

/* $Id: ex4.c 221 2002-08-24 12:54:47Z kpoitschke $ */


Generated on Fri Nov 4 16:19:04 2005 for libsqlora8 by  doxygen 1.4.1