无法从表(Postgresql)中选择变量

无法从表(Postgresql)中选择变量,postgresql,grafana,grafana-templating,grafana-variable,Postgresql,Grafana,Grafana Templating,Grafana Variable,我有变量名称,它存储所有列名 Names = {“col 1”, “col 2”, “col 3”} 我想发出请求,比如从MyTable中选择$Names 生成的SQL:从MyTable中选择“col1” 但我得到了错误:值列必须有数字数据类型,列:?列?类型:字符串值:列1 当我在双引号上手动更改引号时,它可以工作,但我不想每次都更改它。 从MyTable中选择“col 1”工作 我尝试使用{Names:doublequote},但也不起作用。SQL:从MyTable中选择{Names:do

我有变量名称,它存储所有列名

Names = {“col 1”, “col 2”, “col 3”}
我想发出请求,比如
从MyTable中选择$Names

生成的SQL:
从MyTable中选择“col1”
但我得到了错误:值列必须有数字数据类型,列:?列?类型:字符串值:列1

当我在双引号上手动更改引号时,它可以工作,但我不想每次都更改它。
从MyTable中选择“col 1”工作

我尝试使用{Names:doublequote},但也不起作用。SQL:
从MyTable中选择{Names:doublequote}

生成的SQL:
从MyTable中选择{col 1,col 2}

我需要做什么?

我刚刚使用了6.7.3版,但在7.0.0-beta1版中添加了“singlequote”、“doublequote”和“sqlstring”。很抱歉。

我刚刚使用了6.7.3版,但在7.0.0-beta1版中添加了“singlequote”、“doublequote”和“sqlstring”。对不起