Re: Exceptions when 0 rows affected.

Поиск
Список
Период
Сортировка
От Stef
Тема Re: Exceptions when 0 rows affected.
Дата
Msg-id 20040513164936.6fad8cc5@svb.ucs.co.za
обсуждение исходный текст
Ответ на Exceptions when 0 rows affected.  (Stef <svb@ucs.co.za>)
Список pgsql-sql
Andrei Bintintan mentioned :
=> Your problem depends on what interface/programming language you're using.

Yep, I tried to do it using rules or triggers, but I can't get it to do what I want 
exactly, and it's not a good idea to put any rules or triggers on my database.

I'm sticking to psql though, and managed to create the query with a nested
nullif and coalesce to make my query fail if there are 0 rows matching for
an update or delete.

Cheers
Stef


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

Предыдущее
От: Yasir Malik
Дата:
Сообщение: Re: a wierd query
Следующее
От: Edmund Bacon
Дата:
Сообщение: Re: a wierd query