jupysql
jupysql copied to clipboard
How to use snippet as a string?
Hello, can I use the the snippet as string without use python variable?
%%sql --save mysnip --no-execute
SELECT * FROM B
Manually add parentheses - could be this block obtained?
query = %sqlcmd snippets mysnip
query = '"' + query + '"'
This Works
%%sql
SELECT * jdbc('A', {{query}})
But this not
%%sql
SELECT * jdbc('A', "mysnip")