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

Function Return scalar

$
0
0

Hi,

 

  I can't create a function to return a single value ?

 

  In reference http://help.sap.com/hana/html/sql_create_function.html say that i can use Return <sql_type> or <table type>.

 

  But I can't create a function to return a single sql_type. Like this:

 

CREATE FUNCTION teste123(a varchar(10)) RETURNS INTEGER 

LANGUAGE SQLSCRIPT AS

BEGIN

return 10;

END;

 

Thank you.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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