Skip to content
Advertisement

Using IN operator with a variable in SAP HANA

I am trying to use a variable as input for a WHERE condition having an IN clause using SAP HANA.

For example:

However, all my attempts, you can see some of them above, do fail when having multiple values in my condition. STATIONID really is a string field.

Any hints on how to do this?

Advertisement

Answer

Finally I figured out how I can use a variable array together with a variable table by using UNNEST. This is working just fine:

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement