public static void AddToFavorite(int songId,Long time){
String sql = "INSERT INTO "+Config.databaseCfg.tableFavorite+" (_id,time) VALUES ("+songId+","+time+")";
demandDb.execSQL(sql);
sql = "update song set favorite = 1 where _id= "+songId +" and time = "+time;
demandDb.execSQL(sql);
}
更新数据库中的数据程序崩溃报错no such column: time 但打开数据库发现数据却已经更新成功 而且time字段是存在的 这是什么原因啊。。