본문 바로가기 메뉴 바로가기

미선's Blog

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

미선's Blog

검색하기 폼
  • 분류 전체보기 (376)
    • 공부한다 (0)
      • 2021년 (0)
      • 밥줄 (0)
    • 프로그래밍 (182)
      • 자바 (0)
      • spring (3)
      • 파이썬 (9)
      • script언어 (11)
      • WEB (23)
      • Android (101)
      • OS (16)
    • 데이터관리 (36)
      • 딥러닝 (9)
      • BlockChain (18)
    • 금융 (4)
    • 이모저모 (152)
      • IT 이모저모 (94)
      • 인물 (7)
      • 프로젝트 관련자료 (7)
    • 임시작업장 (0)
  • 방명록

SQLite (10)
android.database.sqlite.SQLiteException: bind or column index out of range

06-15 08:51:42.292: ERROR/AndroidRuntime(11019): Caused by: android.database.sqlite.SQLiteException: bind or column index out of range: handle 0x249200 06-15 08:51:42.292: ERROR/AndroidRuntime(11019): at android.database.sqlite.SQLiteProgram.native_bind_string(Native Method) 06-15 08:51:42.292: ERROR/AndroidRuntime(11019): at android.database.sqlite.SQLiteProgram.bindString(SQLiteProgram.java:24..

프로그래밍 2011. 6. 15. 17:54
Android SQLite 테이블 CRUD 구현하기

Layout XML 정의하기 SQLiteOpenHelper 구현하기 Activity 생성하기 Layout XML 정의하기 > SQLiteOpenHelper 구현하기 SQLiteOpenHelper 를 상속받아서 DB에 관련된 기능을 구현한다. public class MyDBHelper extends SQLiteOpenHelper { private static final String TAG = "MyDBHelper"; private static final int DATABASE_VERSION = 1; private static final String DB_NAME = "db_sample10"; public MyDBHelper(Context context, CursorFactory factory) { supe..

프로그래밍/Android 2011. 6. 13. 17:09
android.database.sqlite.SQLiteException: no such table:

06-10 09:21:22.781: ERROR/Database(617): android.database.sqlite.SQLiteException: no such table: schedule: , while compiling: INSERT INTO schedule(content) VALUES(?); 메시지 그대로 테이블 명을 잘못 썼다...이놈의 오타..

프로그래밍/Android 2011. 6. 10. 18:27
SQLite Manager

SQLite Manager Android App 개발 시 필요한 SQL을 검증하기 위해 필요한 툴 FireFox 의 부가기능으로 SQLite DB 를 만들고 테이블 생성, 관리 등을 작업할 수 있다. 사용방법은 직관적이므로 눌러보면 알게 된다. 설치방법 Firefox 를 설치한다 부가기능으로 SQLite Manager를 설치한다. 실행방법 Firefox 브라우저를 연다. 도구 > SQLite Manager 를 클릭한다.

데이터관리 2011. 6. 10. 18:01
android.database.sqlite.SQLiteException

06-10 08:54:19.741: ERROR/AndroidRuntime(579): Caused by: android.database.sqlite.SQLiteException: near "AUTOINCREMENT": syntax error: CREATE TABLE schedule(_id INTEGER PRIMARY AUTOINCREMENT, content TEXT); SQL 문을 잘 못 작성하였다... SQLite Manager를 이용하여 SQL을 검증한 후에 사용한다.

프로그래밍/Android 2011. 6. 10. 17:59
android.database.sqlite.SQLiteOpenHelper

추상클래스 이므로 서브 클래스를 파생하여 사용하는 DB에 맞게 메서드들을 재정의하고 적절한 스크립트를 작성해 넣어야 한다. SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version) 생성자 Context context DB를 생성하는 컨텍스트, 보통 메인 액티지티를 전달한다. String name DB 파일의 이름 CursorFactory factory 커스텀 커스를 사용하고자 할 때 지정, 표준 커서를 사용할 때는 null int version DB 파일의 버전 DB 업데이트에 사용 public void onCreate(SQLiteDatabase db) DB가 처음 만들어질 때 호출된다. 여기서 테이블을 만들고 초..

프로그래밍/Android 2011. 6. 10. 17:10
SQLite 소개

2000년 리처드(Richard Hipp) 박사에 의해 개발된 무료 DB 엔진 www.sqlite.org SQLite 특징 데이터를 저장하는 장소가 단순한 파일이므로 별도의 서버가 필요 없으며 연결이니 권한이니 하는 것도 신경쓸 필요가 없다. 파일일 뿐이므로 원하는 대로 복사, 삭제, 이동이 가능하다. 복잡한 설정이나 관리 정채도 불필요하다. 용량이 작다. C언어로 작성되어 있어서 속도가 빠르다. 사용법 DB 생성하기 테이블 만들기

데이터관리 2011. 6. 10. 15:46
[Tools] Remote Shell 에서 sqlite3 Databases 사용하기

From an adb remote shell, you can use the sqlite3 command-line program to manage SQLite databases created by Android applications. The sqlite3 tool includes many useful commands, such as .dump to print out the contents of a table and .schema to print the SQL CREATE statement for an existing table. The tool also gives you the ability to execute SQLite commands on the fly. 참고자료 Examining sqlite3 D..

프로그래밍/Android 2011. 6. 9. 15:09
안드로이드에서 SQLite 사용하기

안드로이는 SQLite database 를 모두 지원한다. 생성한 어떤 DB도 어플리케이션 안에서는 이름을 가지고 어떤 클래스에도 접근가능하지만, 어플리케이션 밖에서는 불가능하다. Android provides full support for SQLite databases. Any databases you create will be accessible by name to any class in the application, but not outside the application. 새 SQLite database를 만드는 권장하는 방법은 SQLiteOpenHelper 의 서브 클래스를 생성하고 onCreate() 메소드를 오버라이드하고 그 곳에서 관련명령을 실행한다. The recommended metho..

프로그래밍/Android 2011. 6. 9. 14:59
[SQLite] Datatypes In SQLite Version 3

Datatypes In SQLite Version 3 data type value 특징 NULL NULL INTEGER signed integer stored in 1, 2, 3, 4, 6, or 8 bytes REAL floating point value 8-byte IEEE floating point number TEXT text string UTF-8, UTF-16BE or UTF-16LE 사용 BLOB blob of data Boolean Datatype 별도의 Boolean 타입은 없다. 대신 Integers 의 0과 1 사용 SQLite does not have a separate Boolean storage class. Instead, Boolean values are stored as in..

데이터관리 2010. 12. 2. 16:03
이전 1 다음
이전 다음
최근에 올라온 글
최근에 달린 댓글
TAG
  • IT 신문스크랩
  • chrome
  • html5
  • Tools
  • UML
  • WAC
  • head first python
  • IT
  • oracle
  • 신문스크랩
  • App Widgets
  • Android
  • OS
  • Eclipse
  • Head First jQuery
  • 인물
  • SQLite
  • 안드로이드
  • google I/O
  • 이클립스
  • Bitcoin
  • 환경설정
  • WebView
  • Java
  • 오라클
  • jQuery
  • 블록체인
  • Spring 3
  • 애플
  • Spring
more
Total
Today
Yesterday

Blog is powered by Tistory / Designed by Tistory

티스토리툴바