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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tDBRow(MySQL) - NamedParameter

Hi,

I want to execute a SQL query  with the tDBRow(MySQL) component.  How can i define the two named parameters ? 

select * from people where (first_name = :name or last_name = :name) and address = :address")

 Any ideas ?

Labels (2)
1 Reply
fdenis
Master
Master

on your sql query you can insert java code globalMap value or context value:
"select * from people where (first_name = "+ globalMap.get("yourGlobalVar") +" or last_name = " + context.oneValue + ") and address = " + any java code + " )"