How do I migrate stored procedures with return status from SQL Server/Sybase to PostgreSQL

0

While migrating from SQL Server or Sybase database to PostgreSQL, how do you convert a stored procedure with return status and check if procedure call is successful.

Sample example: EXEC @return_status = sample_proc

AWS
已提问 4 年前494 查看次数
1 回答
0
已接受的回答

If there is no need for transactional level commit or rollback statements, then you can opt to make it Function in PostgreSQL and Return Status code as per Execution logic. Function in PostgreSQL should suffice most of cases as compared to Procedure in commercial database engines.

已回答 4 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则