cancel
Showing results for 
Search instead for 
Did you mean: 

SELECT... INTO... in SQLSCRIPT

Former Member
0 Kudos

Hi All,

In SQLScript, if I declare a local variable and use "select...into..." to assign value to it, is that declarative or imperative logic?

And how does that affect parallelism?

According to the SQLScript guide, this is imperative. But isn't a select statement declarative?

Thanks in advance.

Regards,

Jason

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

A select into statement can be applied to a local table variable with no loss of parallelism. But this is different to a select into a local scalar variable because Hana doesn't have an equivalent to select single. To do this would push you out of parallel mode.

Former Member
0 Kudos

Thanks!

Answers (0)