내용

글번호 1194
작성자 heojk
작성일 2023-03-16 07:56:37
제목 sqlite는 data 타입이 없으므로...
내용 sqlite의 데이터 타입 NULL. The value is a NULL value. INTEGER. The value is a signed integer, stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of the value. REAL. The value is a floating point value, stored as an 8-byte IEEE floating point number. TEXT. The value is a text string, stored using the database encoding (UTF-8, UTF-16BE or UTF-16LE). BLOB. The value is a blob of data, stored exactly as it was input. BLOB 타입은 이미지, 오디오, 동영상과 같은 큰 data를 hex code로 처리할 때 사용된다. sql 쿼리에서 일반적으로 사용되는 varchar, text, ntext, boolean등은 적당히 겹치는것을 사용하면 된다. datetime 타입이 없으므로 아래 3가지 형태의 format 하에 저장할 수 있도록 지원한다. TEXT : ISO8601 문자열 형식 ("YYYY-MM-DD HH:MM:SS.SSS") REAL : 줄리안일 BC4714-11-24 이 기준일, 기준일 이후 일 수로 표현 INTEGER : Unix time format, 1970-01-01 00:00:00 UTC 이후 초로 표현 날짜와 시간 함수 설명 https://www.sqlite.org/lang_datefunc.html