-
Goal:
Whenever I click on an item in the listbox, I want to complete the select query using the value of the clicked element as a table name. -
Steps:I wrote the following query :
SELECT
COUNT(*)
FROM {{listbox_exchange.value}}
And I expect the query to be completed and executed as follows:
SELECT
COUNT(*)
FROM stock_nyse
But I only get the following error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''stock_nasdaq'' at line 3
Plaease help me to get a correct result