# Query Parameters

TablePlus supports adding query parameters.\
\
**1. In Comment**

You can use the comments to tell TablePlus to draw a chart, for example:\
\
\-- TablePlus BarChart x: a, y: b\
SELECT 1 as a, 2 as b;

\
This query will draw a chart base on the comment instructions. You don't need to enable it, this feature is always on by default.\
\
**2. In Queries**

By default, TablePlus disables this feature. You can change the query parameter options by clicking on the config/setting button at the bottom left of the editor and choose Query params options:

* Select/unselect **`Enable query params`** to enable/disable query parameters.
* Change query param Regex between 4 variables:
  * **`:[\w.]`**
  * **`%[\w.]+%`**
  * **`\?`**
  * **`\$\{[\w.]+\}`**

![](https://2743975646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LriZ7WXXZykpg6_MQsw%2F-LrnvNXGA_Ku7LvYu6UL%2F-Lro-2JXIygh6Qac0rs2%2Fparams%20regex.gif?alt=media\&token=53366d72-a0a1-41fb-b6b2-e6cd9c2334a9)
