0
我創建了一個SQLite數據庫,但創建模式後,我在下面的代碼得到一個例外:DatabasePathException使用SQLite
try
{
URI myURI = URI.create("file:///SDCard/Databases/dbstill.db");
distillDB = DatabaseFactory.open(myURI);
Statement st = distillDB.createStatement("CREATE TABLE 'People' (" +
"'Name' TEXT, " +
"'Age' INTEGER)");
st.prepare();
st.execute();
st.close();
distillDB.close();
}
catch (Exception e)
{
e.printStackTrace();
}
能否請您重新表述您的問題......你也可以添加錯誤消息。 – 2010-10-20 14:48:43