# Reading Variables

To retrieve the value of a variable, use the `@@` selector with the variable in a `SELECT` statement. For example,

```sql
SELECT @@sql_mode;

```

```output

+-------------------+
| @@sql_mode        |
+-------------------+
| STRICT_ALL_TABLES |
+-------------------+
1 row in set (0.27 sec)

```

***

Modified at: July 5, 2021

Source: [/db/v9.1/reference/configuration-reference/engine-variables/reading-variables/](https://docs.singlestore.com/db/v9.1/reference/configuration-reference/engine-variables/reading-variables/)

(An index of the documentation is available at /llms.txt)
