如何在一个sqlite数据库中创建多个表

如题所述

这个是onCreate这句话的毛病
它只负责创建数据库。
建议是在
public
void
onUpgrade(SQLiteDatabase
db,
int
oldVersion,
int
newVersion)
{
db.execSQL("create
table
sunCount(id
integer
primary
key
autoincrement,conut
integer)");
}
这里面创建
更新数数据库
再创建一张表
就可以了
创建表的方法
和开始一样
温馨提示:答案为网友推荐,仅供参考
相似回答