i am using a dropdown box to select a value
df=%sql -x select distinct rtrim(creator) as creator from sysibm.systables
drop=widgets.Dropdown(
options=df[‘CREATOR’],
description=‘Schema:’,
disabled=False,
)
display(drop)
drop.value
‘SYSCAT’
now I want to use this drop.value as an input for a new query
%sql select … from table … where name= $drop.value
this is handled as : %sql select … from table … where name=SYSCAT
but to be valid for the sql it should be … name=‘SYSCAT’
how can we force to keep these quotes around the variable ?
thanks for all update/help
best Regards, Guy

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/4698fdad-83a9-4fa1-8a82-2c68c7ab90ef%40googlegroups.com.

Reply via email to