Main Page   Modules   File List   Globals   Related Pages   Examples  

ex2.c

Example for using sqlo_count

/* $Id: ex2.c,v 1.4 2002/08/24 12:54:47 kpoitschke Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include "examples.h"

int col_count(sqlo_db_handle_t dbh, char * table_name)
{
  int stat;
  if ( 0 > (stat = sqlo_count(dbh, "USER_TAB_COLUMNS", "TABLE_NAME", table_name, NULL))) {
    error_exit(dbh, "sqlo_count");
  }
  return stat;
}

/* $Id: ex2.c,v 1.4 2002/08/24 12:54:47 kpoitschke Exp $ */

Generated on Mon Aug 25 12:28:29 2003 for libsqlora8 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002