package com.example.ggq.gaoguoqing2018072403.db; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.support.annotation.Nullable; public class ShopOpenHelper extends SQLiteOpenHelper { private static final String DB_NAME = "shop.db"; private static final int DB_VERSION = 1; public ShopOpenHelper(@Nullable Context context) { super(context, DB_NAME, null, DB_VERSION); } @Override public void onCreate(SQLiteDatabase db) { db.execSQL("create table shop(_id Integer primary key autoincrement,url Varchar(200),json TEXT)"); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { } }
OpenHelper
最新推荐文章于 2022-09-16 19:14:33 发布