SQLite Table not saving
I have a query regarding SQLite. I am running it on Mac OS X. I created a table, added, deleted rows,columns values and everything is working fine. But when i close the terminal and exit, and reopen the terminal again, the table that i created previously is no longer there. is thi sthe normal beh开发者_如何学JAVAaviour like session only or am i going wrong somewhere.
Are you connecting to a database by name. If not by default the sqlite3 engine will create an in-memory database, and that will disappear once you disconnect.
Try starting your session with something like this:
sqlite3 my_database.litedb
精彩评论