dbCheckTable(3dba)


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.

References

dbConnect(3dba), Intro(3dba)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004