Re: SQL( "if ...exists...),how to do it in the PostgreSQL?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: SQL( "if ...exists...),how to do it in the PostgreSQL?
Дата
Msg-id Pine.LNX.4.30.0106061648090.757-100000@peter.localdomain
обсуждение исходный текст
Ответ на SQL( "if ...exists...),how to do it in the PostgreSQL?  ("Eric" <e-lz@263.net>)
Ответы Re: SQL( "if ...exists...),how to do it in the PostgreSQL?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Eric writes:

>    I can realize this function in the SYBase,but How can i do it in the PostgreSQL?
>
> /****SQL***/
> if not exists(select id from test) insert into test(id) values (280);
> /*********/

Write a function in PL/pgSQL.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter



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

Предыдущее
От: Alessio Bragadini
Дата:
Сообщение: Strange error, probably WAL-related
Следующее
От: Tom Lane
Дата:
Сообщение: Re: vacuumdb -a -z hangs