archive

Postgres – Verify if Table Exists


// verify if table exists
db_query("SELECT exists( select * from pg_tables where tablename='".$row['file_name']."' and schemaname='public')");

// verify if
if ($row['?column?'] <> "t")
{
// ok, exists
}

Comments are closed.