문제

i try to two difrent table data combine in single query by using where condition and group by ,but cant work this query.

cur=dh.rawQuery("select _milkid,milkType,milkLitre,totalAmount from MilkDetail where milkDate='"+reportDate+"'" GROUP BY milkType, null);
도움이 되었습니까?

해결책

The string is malformed, GROUP BY milktype is out of the sql syntax

cur=dh.rawQuery("select _milkid, milkType, milkLitre, totalAmount from MilkDetail where milkDate='" + reportDate + "' GROUP BY milkType", null);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top