특정 데이터베이스 열에서 모든 데이터를 검색하고 문자열 배열에 저장할 수있는 방법이 있습니까?데이터베이스 열에서 모든 데이터 검색
public class DatabaseTotalEntries {
public static final String KEY_ROWID = "_id";
public static final String KEY_NAME = "appliance_name";
public static final String KEY_TOTAL_TIME = "appliance_running_time";
public static final String KEY_TOTAL_COST = "appliance_cost_usage";
public static final String KEY_TOTAL_ENERGY = "appliance_energy_usage";
private static final String DATABASE_NAME = "ApplianceTotaldb"; // The name of the database
private static final String DATABASE_TABLE = "AllEntries"; // The name of the database table
private static final int DATABASE_VERSION = 1;
나는 열 'KEY_TOTAL_COST'데이터베이스에있는 모든 행/항목에서 데이터가 String 배열
에서 검색하고 저장하는 방법을 만들기 위해 찾고 있어요 : 내 데이터베이스는 현재 다음과 같습니다모든 hep는 인정 될 것입니다.
당신은 그 특정 열 데이터를 제공하는 [table name]에서 [field name]을 선택하는 것과 같은 간단한 SQL 쿼리를 실행할 수 있습니다. –