Tables, Views, and Files
Query a File
Description
The SELECT * FROM files.file_name
statement is used to select data from a file.
First, you upload a file to the MindsDB Editor by following
this guide. And then, you can
CREATE MODEL
from the uploaded file.
Syntax
Here is the syntax:
On execution, we get:
Where:
Name | Description |
---|---|
file_name | Name of the file uploaded to the MindsDB Editor by following this guide. |
column | Name of the column from the file. |
Example
Once you uploaded your file by following this guide, you can query it like a table.
On execution, we get:
Now let’s create a predictor using the uploaded file. You can learn more about
the CREATE MODEL
command here.
On execution, we get:
Was this page helpful?