dbCheckTable --
check for the existence of a table
Synopsis
cc [flag ...] file ...
-kthread-leels [library] ...
#include <eelsdba.h>
int dbCheckTable(DBConn *conn, char *table);
Description
Use dbcheckTable to determine if a table exists
in a given database. Before you can use this routine, you must
first connect to the database using
dbConnect(3dba),
and then pass the returned connection handle to dbCheckTable.
Arguments
conn
(Input) A database connection that was returned from a
previous call to dbConnect.
table
(Input) The name of the table to check for.
Return values
Returns 0 if table does not exist, a value greater than 0
if the table does exists, or -1 if an internal error occured.