One-liner for running queries against CSV files with SQLite | Simon Willison’s TILs
mercredi 22 juin 2022 à 09:00Pour faire une requête SQL sur un fichier CSV :
sqlite3 :memory: -cmd '.mode csv' -cmd '.import taxi.csv taxi' -cmd '.mode column' 'SELECT passenger_count, COUNT(*), AVG(total_amount) FROM taxi GROUP BY passenger_count'