Capture the sql return code

Dear SQL team,

I am using stored procedure, and will be executing multiple sqls in it, based on sql status of previous one will excute others sql. Like Sql code in db2 , how can I capture the status code of each sql.

Basically wanted to know what we have in in Memsql like sqlcode in Db2.

Hi Mohan,

I think your question will be answered by our docs link here

Let us know how you implemented your solution.

Thanks,