Exceptions when 0 rows affected.

Поиск
Список
Период
Сортировка
От Stef
Тема Exceptions when 0 rows affected.
Дата
Msg-id 20040510150808.7ea12c06@svb.ucs.co.za
обсуждение исходный текст
Список pgsql-sql
Hi all,

I've been looking on Google,the archives and documentation,
but cannot find what I'm looking for. Maybe I've read the 
answer, but it's still evading me. 

I'm working with postgres 7.3.4 using the psql client.

I want to know if it's possible to raise an error in a
transactional BEGIN->END block when e.g. an update
or delete statement affects zero rows.

I want the entire transaction block to rollback when 
this happens. I can do it in perl and java , but would 
in this instance like to load a file with SQL statements
using psql -f . Is it possible?

Kind Regards
Stefan

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

Предыдущее
От: Theodore Petrosky
Дата:
Сообщение: Re: not really SQL but I need info on BLOBs
Следующее
От: "Bernard Cheung"
Дата:
Сообщение: Trigger function to know which fields are being updated