MindsDB home page
Search...
⌘K
Overview
Introduction
Interfaces
REST API
Python SDK
Overview
Connect
Unify
Projects
Create a Project
Remove a Project
List Projects
Query Projects
Knowledge Bases
Tables, Views, and Files
Jobs
Respond
JavaScript SDK
MindsDB home page
Search...
⌘K
Ask AI
Slack
GitHub
Website
Watch Video
Watch Video
Search...
Navigation
Projects
Query Projects
Documentation
Connect
Unify
Respond
MCP API
SDKs & APIs
Contribute
FAQs
Documentation
Connect
Unify
Respond
MCP API
SDKs & APIs
Contribute
FAQs
Slack
GitHub
Website
Watch Video
On this page
Description
Syntax
Projects
Query Projects
Copy page
Copy page
Description
The
query()
methods enables you to run queries on models, tables, and views stored in a project.
Syntax
Use the
query()
method to submit a query to a project:
Copy
Ask AI
query
=
project.query(
'SELECT * FROM my_table;'
)
query.fetch()
Was this page helpful?
Yes
No
Suggest edits
Raise issue
List Projects
Overview
Assistant
Responses are generated using AI and may contain mistakes.