Hello,

I have a problem. I have an script that makes several operations in the
database, but I want to know how can I validate errors. For example in sql
server I do if @@error_count = 0 …, Can Anybody tell me how validate it in
postgres like this:?

If error occurred then rollback transaction.

 

Regards.

 

 

Ing. Esneiker Enriquez Cabrera.

 

Excelencia en Software.

Desoft S.A. en Ciego de Ávila.

Joaquín de Agüero Esq. Calle 2. Ciego de Ávila. Cuba.

email: <mailto:[email protected]> [email protected]

 

 

Responder a