表「credentials」在adb shell中顯示。我檢查logcat的,它似乎並沒有報告問題...創建表語句時僅創建第一個表
private static final String DATABASE_CREATE =
"create table credentials (_id integer primary key autoincrement, "
+ "username text not null, password text not null, "
+ "lastupdate text);"
+ "create table user (_id integer primary key autoincrement, "
+ "firstname text not null, "
+ "lastname text not null);"
+ "create table phone (_phoneid integer primary key autoincrement, "
+ "userid integer not null, phonetype text not null, "
+ "phonenumber text not null);"
+ "create table email (_emailid integer primary key autoincrement, "
+ "userid integer not null, emailtype text not null, "
+ "emailaddress text not null);"
+ "create table address (_addressid integer primary key autoincrement,"
+ "userid integer not null, addresstype text not null, "
+ "address text not null);"
+ "create table instantmessaging (_imid integer primary key autoincrement, "
+ "userid integer not null, imtype text not null, "
+ "imaccount text not null);";
我已經澆過這一點,我敢打賭,它的一些愚蠢的語法拼寫錯誤!或者,至少我希望是一些小事;-)
嗯,剛剛嘗試過,仍然沒有運氣... – Craig 2010-05-28 10:29:52
比嘗試打破每個語句比執行和看到的結果,因爲可能是由於聲明 – 2010-05-28 10:36:16