cancel
Showing results for 
Search instead for 
Did you mean: 

Syntax error---Procedure

former_member226419
Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

pfefferf
Active Contributor
0 Kudos

Hi Sumeet,

which HANA Revision you use? The inline type declaration is available since SPS09.

Best Regards,

Florian

former_member226419
Contributor
0 Kudos

Hi,

I am using version 1.00.80.00.391861. Is that SP 8?

BR

Sumeet

pfefferf
Active Contributor
0 Kudos

Yes, that is SPS08. So you have to upgrade to use that new syntax .

In the blog post of Rich Heilman about SQLScript News for SPS09 it is described:

Former Member
0 Kudos

Hi Sumeet,

     Yes that would mean SP 8 (80-89)