0
안녕의 특정 열 목록을 얻는 방법 모든 성냥의 점수의 명부, 그래서 나는 이것 같이 점수 세부 사항을 가져 오는 것을 시도했다.내가 DbFlow</p> <p>내가이</p> <pre><code>public List<Match> getMatchDetails() { return SQLite.select() .from(Match.class) .queryList(); } </code></pre> <p>를 사용할 때 나는 경기 정보를 얻을하지만 실제로 필요로 하나 개의 열 목록을 가져 오기 위해 노력하고 DBFlow 안드로이드
public List<String> getScore() {
return SQLite.select(Match_Table.score) // (score is string)
.from(Match.class)
.queryList();
}
But still I can fetch details as List<Match> and not List<String>. Am I doing anything wrong?
감사합니다 @NikolaDev을 나는이 방법을 시도했습니다. 하지만 왜 내가 DBFlow에서 특정 열을 얻을 수 없는지 이해가 안 돼요. SQLite.select (Match_Table.score) 및 SQLite.select()는 모두 동일한 Match_Table 모델을 반환합니다. – Nivedh