การประมวลผลข้อมูลบน Command Line
Susan Sun
Data Person
csvsql:
อาร์กิวเมนต์เพิ่มเติม:
--insert--db--no-inference & --no-constraintsตัวอย่างไวยากรณ์:
csvsql --db "sqlite:///SpotifyDatabase.db" \
--insert Spotify_MusicAttributes.csv
หมายเหตุ:
ใช้ line break เพื่อให้โค้ดอ่านง่ายขึ้น
ใช้ slash สามตัวเพื่อเริ่มต้นชื่อฐานข้อมูล
ลงท้ายด้วยนามสกุลไฟล์ .db สำหรับฐานข้อมูล SQLITE
ตัวอย่างไวยากรณ์:
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.
การประมวลผลข้อมูลบน Command Line