Main Page   Modules   File List   Globals   Related Pages   Examples  

ex1.c

Example for using sqlo_exists

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

int table_exists(sqlo_db_handle_t dbh, char * table_name)
{
  int stat;
  if ( 0 > (stat = sqlo_exists(dbh, "USER_TABLES", "TABLE_NAME", table_name, NULL))) {
    error_exit(dbh, "sqlo_exists");
   } 
  return stat == SQLO_SUCCESS ? 1 : 0;
 }

/* $Id: ex1.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