Caused by: android.database.sqlite.SQLiteException: no such table: accesslog (code 1): , while compiling: SELECT * FROM accesslog
#################################################################
Error Code : 1 (SQLITE_ERROR)
Caused By : SQL(query) error or missing database.
(no such table: accesslog (code 1): , while compiling: SELECT * FROM accesslog)
#################################################################
에러 로그입니다.
String tableName = "accesslog";
helper = new MySQLiteOpenHelper(
this, // 현재 화면의 제어권자
dbName, // 데이터베이스 이름
null, // 커서팩토리 - null 이면 표준 커서가 사용됨
dbVersion); // 데이터베이스 버전
private void select () {
Cursor c = db.query(tableName, null, null, null, null, null, null); <<< 이곳에서 나는데....
while(c.moveToNext()) {
int _id = c.getInt(0);
String hotel = c.getString(1);
int room = c.getInt(2);
String time = c.getString(3);
Log.d(TAG,"_id:"+_id+",hotel:"+hotel
+",room:"+room+",time:"+time);
}
}
SQL 은 처음이라... 이해가 잘안가네요... 제가 무엇을 잘못한거죠...? ㅜㅜㅜ