1
문제가 있습니다.SQLite - 선택 및 정수 유형
SQLite 테이블의 특정 레지스터에 액세스하려고합니다.
String[] campos = new String[] {"codInterno"};
String[] arg2 = new String[] {strId};
Cursor c = db.query("Incidentes", campos, "codReg=?", arg2, null, null, null);
그래서 codReg = strId ... wheres 문제가없는 필드 codInterno로 등록해야합니다.
이제 특정 레지스터에 액세스하려면 codInterno - 1을 넣고 select를 사용하여 액세스해야합니다. codInterno = codInterno - 1 ..이 필드는 정수이며 항상 조건을 사용해야 할 때, 문자열 배열을 사용해야합니다.
SELECT에 정수 매개 변수를 넣을 수 있습니까? 당신의 ARG2 매개 변수에
같은 것을 사용 하는가? – Knickedi