ex1.c

Example for using sqlo_exists

00001 /* $Id: ex1.c 221 2002-08-24 12:54:47Z kpoitschke $ */
00002 #include <stdio.h>
00003 #include <stdlib.h>
00004 #include "examples.h"
00005 
00006 int table_exists(sqlo_db_handle_t dbh, char * table_name)
00007 {
00008   int stat;
00009   if ( 0 > (stat = sqlo_exists(dbh, "USER_TABLES", "TABLE_NAME", table_name, NULL))) {
00010     error_exit(dbh, "sqlo_exists");
00011    } 
00012   return stat == SQLO_SUCCESS ? 1 : 0;
00013  }
00014 
00015 /* $Id: ex1.c 221 2002-08-24 12:54:47Z kpoitschke $ */

Generated on Mon May 21 13:43:28 2007 for libsqlora8 by  doxygen 1.4.7