在 Shell 中進行資料處理
Susan Sun
Data Person
csvsql:
更多參數:
--insert--db--no-inference 與 --no-constraints範例語法:
csvsql --db "sqlite:///SpotifyDatabase.db" \
--insert Spotify_MusicAttributes.csv
注意:
使用分行提升程式碼整潔與可讀性
使用三個斜線開始資料庫名稱
SQLITE 資料庫以 .db 副檔名結尾
範例語法:
csvsql --db "sqlite:///SpotifyDatabase.db" \
--insert Spotify_MusicAttributes.csv
文件:
csvsql -h
--insert In addition to creating the table, also insert the
data into the table. Only valid when --db is specified.
範例語法:
csvsql --no-inference --no-constraints \
--db "sqlite:///SpotifyDatabase.db" \
--insert Spotify_MusicAttributes.csv
文件:
csvsql -h
--no-inference Disable type inference when parsing the input.
--no-constraints Generate a schema without length limits or null checks.
在 Shell 中進行資料處理