Conditional statements?

Поиск
Список
Период
Сортировка
От Mark Alliban
Тема Conditional statements?
Дата
Msg-id 002a01c02174$69b5f7f0$0e0410ac@teledome.com
обсуждение исходный текст
Список pgsql-general
Hi,

I was wondering if it is possible to have conditional statements in
postgres, like there are in M$SQL?

Simplified example:
IF NOT EXISTS(SELECT * FROM testtable WHERE id=3)
    INSERT INTO testtable (id) VALUES (3)

TIA,
Mark.



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