Main Page   Modules   File List   Globals   Related Pages   Examples  

ex4.c

Example for using sqlo_open

/* $Id: ex4.c,v 1.4 2002/08/24 12:54:47 kpoitschke Exp $ */
#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,v 1.4 2002/08/24 12:54:47 kpoitschke Exp $ */


Generated on Thu Aug 14 18:02:53 2003 for libsqlora8 by doxygen1.2.18