Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

String Literals in the script

Hi Folks,

I need create the string like below and used this sting in my SQL query.

Let vValues = 'India','Usa','Aus';

My SQL: Select * from Customer where Country in ($(vValues ))

How can i do that in the script.

Thanks & Regards,

Siri

Labels (1)
2 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,    

     Check with it

     Let vValues = chr(39)&'India'&chr(39)&','&chr(39)&'Usa'&chr(39)&','&chr(39)&'Aus'&chr(39);

Celambarasan

jonathandienst
Partner - Champion III
Partner - Champion III

Siri

You can just di this:

Set vValues = 'India','Usa','Aus';

Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein