android database Sqlite3 view database

1. Enter the directory where the database is located:

  Execute sqlite3 richard.db //richard.db is the database name

2.select * from sqlite_master where type='table'; //View the creation statement Note: Finally ';' Don't forget

3.select * from tb_user; //View the contents of the table, where 'tb_user' is the table name

4. .quit //Return to the previous level, be careful not to miss the point before quit

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325602539&siteId=291194637