MindsDB home page
Search...
⌘K
Ask AI
Login
Get Started
Get Started
Search...
Navigation
Tables, Views, Files
Query a File
Documentation
SQL API
SDKs
REST API
Integrations
Contribute
FAQs
Join our Slack
GitHub
SDKs
Overview
Mongo-QL
Python SDK
Connect
Databases
ML Engines
Projects
Models
Predictions
Tables, Views, Files
Create a Table
Remove a Table
Query a Table
Native Queries
Update a Table
Insert Into a Table
Join Tables On
Delete From a Table
Create a View
Remove a View
Query a View
List Views
Upload a File
Remove a File
Query a File
Jobs
JavaScript SDK
On this page
Description
Syntax
Tables, Views, Files
Query a File
Description
In MindsDB, files are treated as tables. These are stored in the default
files
database. To query a file, you must save this
files
database into a variable and then, run the
query()
function on it.
Syntax
Here is the syntax:
Copy
Ask AI
server.get_database('files').query('SELECT * FROM file_name')
Suggest edits
Raise issue
Remove a File
Create a Job
Assistant
Responses are generated using AI and may contain mistakes.