Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

TRY/CATCH in sap hana procedure

$
0
0

my procedure is below

 

 

 

CREATEPROCEDURE TryCatchTest

 

 

LANGUAGE SQLSCRIPT AS

 

 

BEGINTRY

 

 

SELECT 1/0

 

 

ENDTRY

 

 

BEGINCATCH

 

 

SELECT ::SQL_ERROR_CODE AS"Error
Code"
, ::SQL_ERROR_MESSAGE AS"Error
Message"
FROM DUMMY;

 

 

ENDCATCH

 

It does not run Please help me.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>