IF NOT EXIST

Поиск
Список
Период
Сортировка
От Igor Korot
Тема IF NOT EXIST
Дата
Msg-id CA+FnnTyg6BZ0u+CCddbJLZoHF3HHSEvEt1xvWHF3b+jqPduEhg@mail.gmail.com
обсуждение исходный текст
Ответы Re: IF NOT EXIST
Re: IF NOT EXIST
Список pgsql-general
Hi, ALL,
I have a following statement:

IF NOT EXIST( SELECT 1 SELECT 1 FROM pg_proc AS proc, pg_namespace AS
ns ) CREATE FUNCTION();

Unfortunately trying to execute it thru the ODBC interface with:

ret = SQLExecDirect( m_hstmt, query, SQL_NTS );

gives syntax error near IF.

What is the proper way to do that?

Thank you.


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

Предыдущее
От:
Дата:
Сообщение: Re: Creating 2D arrays for pg_copy_from, reading tab-delimited textfile that contains comma and double quotes
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: IF NOT EXIST