Search Postgresql Archives

Re: Create Produre for DROP row

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

 



Marcos wrote:
> Hi,
> 
> Does have possible create one procedure to delete a row that return
> TRUE if the deletion was success or FALSE if a error occur? 
> 
> The procedure for deletion I already create but I don't know how
> detect if the deletion was success executed. 

How do you define success?  A delete can do nothing and be considered
successfully executed as long as no DB errors occur.  If all you want to
know is whether or not DB errors occurred, then Jaime supplied a
solution to that.

-- 
Guy Rouillier



[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