System Messages

Поиск
Список
Период
Сортировка
От Samuel J. Sutjiono
Тема System Messages
Дата
Msg-id 00f701c1bfa4$f19b67c0$110a010a@headquarters.wcgroup.com
обсуждение исходный текст
Список pgsql-sql
I have a function (stored procedures) that updates or inserts a customer record (see below).
 
IF found then
   Update Customer 
   Set custname = icustname
   retmsg := ''record already exists - updated'';
ELSE   
   Insert into Customer (custname) VALUES (icustname);
   retmsg := ''successful'';
END IF;
 
Can anybody tell me how I can be sure that the record is updated or inserted into the database ? Is there any system message in PostgreSQL that I can query ?
 
Thanks for your help. 

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

Предыдущее
От: "Josh Berkus"
Дата:
Сообщение: Re: implementation of a many-to-many relationship
Следующее
От: Barry Lind
Дата:
Сообщение: Re: Timestamp output