0
我正在android上的项目工作!我使用Sugar ORM与我的数据库进行交互,但我认为糖有时会变得疯狂。我有一个错误编译时没有这样的列。我不明白!我放在代码中的任何地方。Android数据库糖orm没有这样的表
public List<Plats> getAllplatById(){
return Plats.find(Plats.class ,NamingHelper.toSQLNameDefault("id_menus")+"= ?" ,String.valueOf(id));
}
,我得到这个错误:
Caused by: android.database.sqlite.SQLiteException: no such column: IDMENUS (code 1): , while compiling: SELECT * FROM PLATS WHERE IDMENUS=
请帮助我。
请更新完整的Plats类,以便我们看看。 –