我写了以下查询
String rawQuery="select * FROM (select email,name,createdat,ROW_NUMBER() OVER (PARTITION BY email ORDER BY createdat DESC) AS RowNumber FROM vitals ) a where RowNumber=?";`
这应该返回包含唯一电子邮件ID但其他非唯一数据的数据。但我收到以下错误
引起:android.database.sqlite.SQLiteException:near"(":syntax 错误(代码1):,编译时:select * FROM vitals,(选择 电子邮件,名称,createdat,ROW_NUMBER()OVER(按电子邮件分区排序 createdd DESC)AS RowNumber FROM vitals)a RowNumber =?
我参考了这个链接enter link description here