rowcount function in postgres???

Поиск
Список
Период
Сортировка
От Karthikeyan Sundaram
Тема rowcount function in postgres???
Дата
Msg-id BAY131-W181F25E4A6D4AC7312545FB05B0@phx.gbl
обсуждение исходный текст
Ответы Re: rowcount function in postgres???  (Michael Fuhr <mike@fuhr.org>)
Re: rowcount function in postgres???  ("Rodrigo De León" <rdeleonp@gmail.com>)
Список pgsql-sql
Hi,
 
   I am using 8.1.0 postgres and trying to write a plpgsql block.  In that I am inserting a row.  I want to check to see if the row has been inserted or not.
 
  In oracle we can say like this
 
   begin
     insert into table_a values (1);
     if sql%rowcount > 0
     then
       dbms.output.put_line('rows inserted');
     else
       dbms.output.put_line('rows not inserted');
    end if;
end;
 
Is there something equal to sql%rowcount in postgres?   Please help.
 
Regards
skarthi
 


It’s tax season, make sure to follow these few simple tips Check it out!

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

Предыдущее
От: "George Pavlov"
Дата:
Сообщение: Re: dropping a schema and cross-schema dependencies
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: rowcount function in postgres???