Files
mindsdb--minds/docs/mindsdb_sql/sql/api/use.mdx
martyna-mindsdb 8578740c7f restructured docs sections into tabs (#8633)
* restructured docs sections into tabs

* restructured docs

* changes to SQL API

* fixed some links
2024-01-18 18:10:44 +01:00

27 lines
544 B
Plaintext

---
title: Use a Data Source
sidebarTitle: Use a Data Source
---
## Description
The `USE integration_name` statement provides an option to use the connected
datasources and `SELECT` from the database tables. Even if you are
connecting to MindsDB as MySQL database, you will still be able to `SELECT` from your database.
## Syntax
To connect to your database `USE` the created datasource:
```sql
USE integration_name;
```
Then, simply `SELECT` from the tables:
```sql
SELECT * FROM table_name;
```
![Use datasource](/assets/sql/use.png)