One-liner for running queries against CSV files with SQLite ã¨ããè¨äºã§ç´¹ä»ããã¦ãããã¯ã³ã©ã¤ãã¼ã使ã£ã¦ CSV ãã¡ã¤ã«ã«å¯¾ã㦠SQL ã¯ã¨ãªãå®è¡ããæ¹æ³ã $ sqlite3 :memory: -cmd '.mode csv' -cmd '.import taxi.csv taxi' \ 'SELECT passenger_count, COUNT(*), AVG(total_amount) FROM taxi GROUP BY passenger_count' ã½ã¼ã¹å ã«è¨è¿°ããã¦ãéããtaxi.csv ã GitHub ãããã¦ã³ãã¼ããã¦è©¦ããã¨ãã§ããã7z ã§å§ç¸®ããã¦ãã¦è§£åããå¿ è¦ãããã SQLite ã¯é常ã¹ãã¬ã¼ã¸ãã£ã¹ã¯ï¼SSD ã¨ãï¼ä¸ã«ä¿åãã¦å©ç¨ããã®ãä¸è¬çã ããSQLite å´ã§ç¨æã
{{#tags}}- {{label}}
{{/tags}}