首先创建一个数据库
package com.example.mr.weeksan_work.sql; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; /** * Created by Mr赵 on 2017/12/16. */ public class Mysql extends SQLiteOpenHelper { public Mysql(Context context) { //参数一上下文,参数二数据库名称, super(context, "sq.db", null, 1); } @Override