on 08-26-2014 6:01 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.