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

Syntax error---Procedure

$
0
0

Hi,

 

Sorry for silly question. But i was going through SQL documentation with below example.

Any suggestions.

 

CREATE PROCEDURE exampleExplicit (OUT outTab TABLE(n int))LANGUAGE SQLScript READS SQL DATA AS

BEGIN

DECLARE temp TABLE (n int);

temp = SELECT 1 as n FROM DUMMY ;BEGIN

DECLARE temp TABLE (n int);

temp = SELECT 2 as n FROM DUMMY ;outTab = Select * from :temp;

END;

outTab = Select * from :temp;END;


Error: incorrect syntax near "(":


BR

Sumeet


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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