728x90
<관련글>
2024.09.24 - [Data Science/DB+SQL] - [DuckDB] what is duckDB
Install duckdb
`duckdb cli` window Installation
# wiuget installation
winget install DuckDB.cli
# duckdb cli 실행
duckdb
`duckdb cli` Linux Installation
# DuckDB 최신 릴리스 다운로드 (v1.1.0 설치 예시)
wget https://github.com/duckdb/duckdb/releases/download/v1.1.0/duckdb_cli-linux-amd64.zip
# 압축 해제
unzip duckdb_cli-linux-amd64.zip
# 실행 파일을 /usr/local/bin으로 이동하여 시스템 경로에 추가
sudo mv duckdb /usr/local/bin/
# 실행 권한 부여
sudo chmod +x /usr/local/bin/duckdb
# DuckDB CLI 실행
duckdb
python installation
pip install duckdb
R installation
# R 환경에서 DuckDB 설치
install.packages("duckdb")
Rust installation
# cargo로 통한 설치
cargo add duckdb --features bundled
GO installation
# go get으로 설치
go get github.com/marcboeker/go-duckdb
nods.js installation
# npm으로 설치
npm install duckdb
duckdb cli commands
.bail on|off Stop after hitting an error. Default OFF
.binary on|off Turn binary output on or off. Default OFF
.cd DIRECTORY Change the working directory to DIRECTORY
.changes on|off Show number of rows changed by SQL
.check GLOB Fail if output since .testcase does not match
.columns Column-wise rendering of query results
.constant ?COLOR? Sets the syntax highlighting color used for constant values
.constantcode ?CODE? Sets the syntax highlighting terminal code used for constant values
.databases List names and files of attached databases
.dump ?TABLE? Render database content as SQL
.echo on|off Turn command echo on or off
.excel Display the output of next command in spreadsheet
.edit Opens an external text editor to edit a query.
.exit ?CODE? Exit this program with return-code CODE
.explain ?on|off|auto? Change the EXPLAIN formatting mode. Default: auto
.fullschema ?--indent? Show schema and the content of sqlite_stat tables
.headers on|off Turn display of headers on or off
.help ?-all? ?PATTERN? Show help text for PATTERN
.highlight [on|off] Toggle syntax highlighting in the shell on/off
.import FILE TABLE Import data from FILE into TABLE
.indexes ?TABLE? Show names of indexes
.keyword ?COLOR? Sets the syntax highlighting color used for keywords
.keywordcode ?CODE? Sets the syntax highlighting terminal code used for keywords
.log FILE|off Turn logging on or off. FILE can be stderr/stdout
.maxrows COUNT Sets the maximum number of rows for display (default: 40). Only for duckbox mode.
.maxwidth COUNT Sets the maximum width in characters. 0 defaults to terminal width. Only for duckbox mode.
.mode MODE ?TABLE? Set output mode
.nullvalue STRING Use STRING in place of NULL values
.once ?OPTIONS? ?FILE? Output for the next SQL command only to FILE
.open ?OPTIONS? ?FILE? Close existing database and reopen FILE
.output ?FILE? Send output to FILE or stdout if FILE is omitted
.parameter CMD ... Manage SQL parameter bindings
.print STRING... Print literal STRING
.prompt MAIN CONTINUE Replace the standard prompts
.quit Exit this program
.read FILE Read input from FILE
.rows Row-wise rendering of query results (default)
.schema ?PATTERN? Show the CREATE statements matching PATTERN
.separator COL ?ROW? Change the column and row separators
.sha3sum ... Compute a SHA3 hash of database content
.shell CMD ARGS... Run CMD ARGS... in a system shell
.show Show the current values for various settings
.system CMD ARGS... Run CMD ARGS... in a system shell
.tables ?TABLE? List names of tables matching LIKE pattern TABLE
.testcase NAME Begin redirecting output to 'testcase-out.txt'
.timer on|off Turn SQL timer on or off
.width NUM1 NUM2 ... Set minimum column widths for columnar output
<관련글>
2024.09.24 - [Data Science/DB+SQL] - [DuckDB] what is duckDB
728x90
'Data Science > DB+SQL' 카테고리의 다른 글
[MySQL] 대량의 테스트 데이터 생성 SQL (0) | 2024.09.26 |
---|---|
[OLAP] Open Source OLAP DBMS (0) | 2024.09.25 |
[DuckDB] what is DuckDB (0) | 2024.09.24 |
[DBMS] Isolation Level (0) | 2024.09.21 |
[DBMS] Data Consistency 와 Data Integrity 차이 (0) | 2024.09.21 |
최근댓글