CREATE TABLE IF NOT EXIST

Поиск
Список
Период
Сортировка
От Mike Gagnon
Тема CREATE TABLE IF NOT EXIST
Дата
Msg-id 003301c85f5b$e891c8b0$640fa8c0@T60
обсуждение исходный текст
Ответы Re: CREATE TABLE IF NOT EXIST  ("Obe, Regina" <robe.dnd@cityofboston.gov>)
Список pgsql-odbc
Hi Postgres Experts,
 
I'm trying to create tables (if they don't exist) through the ODBC driver.  I've tried the following:
 
SELECT relname FROM pg_class  WHERE relname = 'mytable';
 
This works from the psql command line program when logged into my database, but not when connected to my database over ODBC ( I get SQL_NO_DATA back from SQLFetch)
 
Any ideas?  Are there other ways to find out if a table exists?
 
Many thanks,
Mike

В списке pgsql-odbc по дате отправления:

Предыдущее
От: Guillaume Gautreau
Дата:
Сообщение: Re: Driver 8.1 : fails contacting the server with routable address
Следующее
От: Lathrop_Steve@emc.com
Дата:
Сообщение: Building ODBC driver issue