Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, everyone. I have to translate StoredProcedure from SQL to PostgreSQL. In SQL the I have the following code snippet:
BEGIN CATCH

		select 'file couldnt be deleted'

	END CATCH 

What is postgresql equivalent of "try catch" in sql?

What I have tried:

I tried BEGIN - EXCEPTION - END in postgresql but it did not work.
Posted
Updated 21-Jun-19 4:32am

1 solution

First google result seems to have the answer, PostgreSQL: Documentation: 9.4: Error Handling[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900