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

ex1.c

Example for using sqlo_exists

/* $Id: ex1.c 221 2002-08-24 12:54:47Z kpoitschke $ */
#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 221 2002-08-24 12:54:47Z kpoitschke $ */

Generated on Mon May 21 13:37:50 2007 for libsqlora8 by  doxygen 1.3.9.1