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 Thu Aug 25 12:33:50 2005 for libsqlora8 by  doxygen 1.3.9.1