greendao-generator

how to use DISTINCT in GreenDao

我只是一个虾纸丫 提交于 2019-12-23 02:57:18
问题 I want to query distinct rows in SqlLite, I am not getting how to query using GreenDao library for android. List<activity> activities = activityDao.queryRaw("SELECT DISTINCT "+Properties.Date_time +" FROM "+activityDao.getTablename()+" WHERE "+Properties.Contact_number+ " = "+phonenumber); ERROR: 11-13 21:12:50.915 9320-10428/? E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #4 Process: com.ficean.android.ficean, PID: 9320 java.lang.RuntimeException: An error occured while executing