Opening database file from within SQLite command-line shell

后端 未结 8 1128
时光说笑
时光说笑 2021-01-29 21:07

I\'m using the SQLite Command Line Shell. As documented, I can open a database by supplying it as an argument to the executable:

sqlite3 data.db

8条回答
  •  北恋
    北恋 (楼主)
    2021-01-29 22:04

    I think the simplest way to just open a single database and start querying is:

    sqlite> .open "test.db"
    sqlite> SELECT * FROM table_name ... ;
    

    Notice: This works only for versions 3.8.2+

提交回复
热议问题