본문 바로가기
[SQLite] Windows 명령 프롬프트로 SQLite 실행 1. SQLite 다운로드 페이지에서 Precompiled Binaries for Windows / sqlite-tools 를 다운로드 받고 압축을 푼다 https://www.sqlite.org/download.html SQLite Download Page Templates (1) and (2) are used for source-code products. Template (1) is used for generic source-code products and templates (2) is used for source-code products that are generally only useful on unix-like platforms. Template (3) is used for precompiled .. 2024. 1. 14.
[SQLite] 자료형 SQLite의 컬럼은 자료형에 상관없이 저장할 수 있는 동적 자료형을 사용한다 저장 형식이 컬럼에 설정된 자료형으로 고정되지 않고 값에 의해서 설정 스토리지 클래스(Storage Class) 저장되는 값 형식 스토리지 클래스 의미 NULL NULL 값 INTEGER 1,2,3,4,8 바이트의 가변 크기 정수 REAL 8바이트 실수 TEXT 문자데이터 저장 최대 길이는 무제한 BLOB 모든 종류의 데이터를 저장할수 있는 바이너리 개체 최대 크기는 이론적으로 무제한 타입 선호도(Type Affinity) 컬럼에 권장되는 데이터 타입 타입 선호도 TEXT NUMERIC INTEGER REAL BLOB 동적 자료형을 사용하지만 다른 데이터베이스와의 호환성을 유지하기 위해 지정하는 것이 좋음 데이터가 입력될때 설.. 2024. 1. 13.
[SQLite] C++에서 사용(Visual Studio) 1. SQLite 다운로드 페이지에서 Source Code와 Precompiled Binaries for Windows를 다운로드 받고 모두 압축을 푼다 https://www.sqlite.org/download.html SQLite Download Page Templates (1) and (2) are used for source-code products. Template (1) is used for generic source-code products and templates (2) is used for source-code products that are generally only useful on unix-like platforms. Template (3) is used for precompiled .. 2024. 1. 10.
[SQLite] Ubuntu 설치 및 C++에서 사용 방법 SQLite 설치 sudo apt-get install sqlite3 libsqlite3-dev 설치 경로 확인 dpkg -L libsqlite3-dev 헤더 경로 /usr/include/sqlite3.h 라이브러리 경로 /lib/aarch64-linux-gnu/libsqlite3.a /lib/aarch64-linux-gnu/libsqlite3.so C++ 사용 CMake에 라이브러리 설정 TARGET_LINK_LIBRARIES([프로젝트] sqlite3) 코드 #include #include int main(int, char**) { printf("%s\n", sqlite3_libversion()); return 0; } 2023. 10. 6.