[mw_shl_code=java,true] private static final String KEY_ID="id"; private static final String KEY_NAME="name"; private static final String KEY_PH_NO="phone_number"; //constructor public DataBaseHandler(Context context){ super(context, DATABASE_NAME, null, DATABASE_VERSION); } //Creating Tables @Override public void onCreate(SQLiteDatabase db) { String CREATE_CONTACTS_TABLE="CREATE TABLE "+TABLE_CONTACTS+"(" +KEY_ID+" INTEGER PRIMARY KEY,"+KEY_NAME+" TEXT," +KEY_PH_NO+" TEXT"+")"; db.execSQL(CREATE_CONTACTS_TABLE); }[/mw_shl_code]用上面代码建的数据库 文件在项目的哪个文件夹下??
1 回答
- 1 回答
- 0 关注
- 1267 浏览
添加回答
举报
0/150
提交
取消