Gegevens verwerken in de Shell
Susan Sun
Data Person
csvsql:
Meer opties:
--insert--db--no-inference & --no-constraintsVoorbeeldsyntaxis:
csvsql --db "sqlite:///SpotifyDatabase.db" \
--insert Spotify_MusicAttributes.csv
Let op:
Regelafbreking houdt code netjes en leesbaar
Gebruik drie slashes om de databasenaam te starten
Eindig met extensie .db voor een SQLITE-database
Voorbeeldsyntaxis:
csvsql --db "sqlite:///SpotifyDatabase.db" \
--insert Spotify_MusicAttributes.csv
Documentatie:
csvsql -h
--insert In addition to creating the table, also insert the
data into the table. Only valid when --db is specified.
Voorbeeldsyntaxis:
csvsql --no-inference --no-constraints \
--db "sqlite:///SpotifyDatabase.db" \
--insert Spotify_MusicAttributes.csv
Documentatie:
csvsql -h
--no-inference Disable type inference when parsing the input.
--no-constraints Generate a schema without length limits or null checks.
Gegevens verwerken in de Shell