# # #数据库的创建
- Build a project
- Test first to see if a new project can run successfully
- Create a personcontrary package and establish a person class to implement the Basecolumns excuse, add all the table column names to this class, and declare the final variable
- Create a database helper class, override the method, and build a constructor method.
# # #数据库对外的查询
1. Copy the compile ' com.facebook.stetho:stetho:1.3.1 ' into the Build (app) and synchronize the code
public class MyApplication extends application {
public void OnCreate () {
Super.oncreate ();
Stetho.initializewithdefaults (this);
}
}
3. Add the Registration Form
4. Open Google Chrome, enter Chrome://inspect
# # #运用命令行来查看数据库
1. Go to Command Manager
2. Enter the ADB shell into the simulator console
3. Go to the database path
4. Enter Sqlite3 xxx.db Enter the SQL command to query the database by command
Establishment of the DAY4 database | | Database External Query | | Using the command line to manipulate the database