mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
983 B
983 B
slug | sidebar_position | sidebar_label | title |
---|---|---|---|
/en/sql-reference/table-functions/sqlite | 55 | sqlite | sqlite |
Allows to perform queries on a data stored in an SQLite database.
Syntax
sqlite('db_path', 'table_name')
Arguments
db_path
— Path to a file with an SQLite database. String.table_name
— Name of a table in the SQLite database. String.
Returned value
- A table object with the same columns as in the original
SQLite
table.
Example
Query:
SELECT * FROM sqlite('sqlite.db', 'table1') ORDER BY col2;
Result:
┌─col1──┬─col2─┐
│ line1 │ 1 │
│ line2 │ 2 │
│ line3 │ 3 │
└───────┴──────┘
See Also
- SQLite table engine