我必须使用四个表创建数据库,其中一个(命名为 table_file)具有来自其他表的外键,首先我尝试同时创建所有表,但 table_file 给了我与外键相关的错误,所以我评论了代码在我的 DBhelper 中创建此表,并且我成功创建了其他表,但是当我取消注释 tabe_file 创建代码 abd 尝试创建此表时,它说我:sqlite 返回:错误代码 = 1,msg = 没有这样的表:file_table 和我在logcat中有那个
06-15 13:26:19.841: E/Database(24784): Error inserting file_category_column=0 file_theme_column=0 file_name_column=priv_priv_222_2012-06-15.pdf file_date_creating_column=1
06-15 13:26:19.841: E/Database(24784): android.database.sqlite.SQLiteException: no such table: file_table: , while compiling: INSERT INTO file_table(file_category_column, file_theme_column, file_name_column, file_date_creating_column) VALUES(?, ?, ?, ?);
06-15 13:26:19.841: E/Database(24784): at android.database.sqlite.SQLiteCompiledSql.native_compile(Native Method)
06-15 13:26:19.841: E/Database(24784): at android.database.sqlite.SQLiteCompiledSql.compile(SQLiteCompiledSql.java:92)
06-15 13:26:19.841: E/Database(24784): at android.database.sqlite.SQLiteCompiledSql.<init>(SQLiteCompiledSql.java:65)
06-15 13:26:19.841: E/Database(24784): at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:83)
06-15 13:26:19.841: E/Database(24784): at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:41)
06-15 13:26:19.841: E/Database(24784): at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1149)
06-15 13:26:19.841: E/Database(24784): at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1569)
06-15 13:26:19.841: E/Database(24784): at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1426)
我该怎么做才能创建这个表?