> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindsdb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a Table

## Description

The `runQuery()` function executes a query given as its argument directly in MindsDB.

## Syntax

Here is the syntax:

```
const query = `CREATE TABLE integration_name.table_name (SELECT * FROM data);`;
const queryResult = await MindsDB.SQL.runQuery(query);
```
