Search Postgresql Archives

Re: how do i get num of recs inserted/deleted/updated in plpgsql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Perhaps....

 

rowcnt integer;

...

get diagnostics rowcnt := row_count;

 

???

 


From: pgsql-general-owner@xxxxxxxxxxxxxx [mailto:pgsql-general-owner@xxxxxxxxxxxxxx] On Behalf Of Gauthier, Dave
Sent: Wednesday, August 01, 2007 12:05 PM
To: pgsql-general@xxxxxxxxxxxxxx
Subject: how do i get num of recs inserted/deleted/updated in plpgsql

 

Looking to capture the total number of records affected with insert/delete/update from within a plpgsql (v7.4 on linux).  Would be nice to have this in an integer.

 

Thanks

-dave

 

 

 

 


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux