Database / DuckDB Interview questions
What is the DuckDB CLI?
The DuckDB command-line interface is a standalone, single-binary executable that provides an interactive SQL shell, letting a user run queries, explore files, and manage databases directly from the terminal without writing any code in a host language.
$ duckdb D SELECT * FROM 'sales.csv' LIMIT 5; D .mode markdown D CREATE TABLE t AS SELECT * FROM 'data.parquet';
Because it requires no installation beyond downloading a single binary, and no separate server to start, the CLI is a common entry point for quickly exploring an unfamiliar dataset, prototyping a query before embedding it in an application, or running one-off analytical tasks in a shell script or CI pipeline, all without the overhead of provisioning any actual database infrastructure.
More Related questions...