# SQL

The SQL statement allows you to send an arbitrary SQL command through an ODBC or OLE DB connection.

Syntax:

SQL sql\_command

Sending SQL statements which update the database will return an error if Qlik Sense has opened the ODBC connection in read-only mode.

The syntax:

`SQL SELECT  * from tab1;`

is allowed, and is the preferred syntax for SELECT, for reasons of consistency. The SQL prefix will, however, remain optional for SELECT statements.

Arguments:

| Argument | Description |
| --- | --- |
| sql\_command | A valid SQL command. |

Example 1:

`SQL leave;`

Example 2:

`SQL Execute <storedProc>;`

## Learn more

* [Select](https://help.qlik.com/en-US/sense/November2024/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Select.htm)