sqlite3 ã§ãã¼ã¿ã¨ã¯ã¹ãã¼ãï¼ã¤ã³ãã¼ã
sqlite3 㧠ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãï¼ã¤ã³ãã¼ããããã¨ããããæå¤ã¨æ å ±ãå°ãªãã¦é£æ¸ãããããã§ããã«ã¡ã¢ããã
æ å ±ã½ã¼ã¹
SQLiteのドットコマンド
.help ã .schema ç "." ã§ã¯ãã¾ãã³ãã³ãã®ãªãã¡ã¬ã³ã¹ã
ã¨ã¯ã¹ãã¼ã
ãã¨ãã°ã¿ãåºåãã§ãã¼ãã« foobar ã®å 容ããã¡ã¤ã«ã«ä¿åãããå ´åã¯æ¬¡ã®ããã«ããã
% sqlite3 mydb.sqlite3 SQLite version 3.3.8 Enter ".help" for instructions sqlite> .mode tabs foobar # åºåãã¿ãåºåã表示ã«å¤æ´ sqlite> .output foobar.txt # åºåå ã "foobar.txt" ãã¡ã¤ã«ã«å¤æ´ sqlite> select * from foobar; # ãã¼ã¿åºå
ã®ããã«è¡ãã
ã¤ã³ãã¼ã
ã¿ãåºåããã¡ã¤ã« foobar.txt ãããã¼ãã« foobar ã«ãã¼ã¿ãã¤ã³ãã¼ãããã
sqlite> .mode tabs foobar # åºåãã¿ãåºåã表示ã«å¤æ´ããã¨ãã¤ã³ãã¼ãæã®ãã¡ã¤ã«ã®è§£éæ¹æ³ãå¤ãããããã sqlite> .import foobar.txt foobar # ã¤ã³ãã¼ãããã¡ã¤ã«åã»ãã¼ãã«åã®é ã«å¼æ°ã«æå®ã