Examples (8)
Start an interactive shell with a transient in-memory database
Start an interactive shell on a database file. If the file does not exist, a new database is created
duckdb path/to/dbfileQuery a CSV, JSON, or Parquet file using SQL
duckdb -c "SELECT * FROM 'data_source.[csv|csv.gz|json|json.gz|parquet]'"Directly query a CSV, JSON, or Parquet file using the `file` view
Run an SQL script
duckdb -f path/to/script.sqlRun query on database file and keep the interactive shell open
duckdb path/to/dbfile -cmd "SELECT DISTINCT * FROM tbl"Read CSV from `stdin` and write CSV to `stdout`
Start the DuckDB UI, a web interface with notebooks
duckdb -uimade by @shridhargupta | data from tldr-pages