0

I trying to search for a helpful tutorials or examples to create a running application with sqlite database and has more than one table but I didn't found any..

Does any one know a helpful sites that provides a tutorials for sqlite database management with all operations on it?

4

1 回答 1

4

Android data storage guide has a section about DBs. Though in its example only one table is crerated is fairly trivial to add more tables.

You should just do this in onCreate:

@Override
public void onCreate(SQLiteDatabase db) {
    db.execSQL(TABLE1_CREATE);
    db.execSQL(TABLE2_CREATE);
    ...
}
于 2013-03-31T01:16:17.760 回答