본문 바로가기

SQlite 에서 지원하지 않는 문법 SQL Features That SQLite Does Not Implement Rather than try to list all the features of SQL92 that SQLite does support, it is much easier to list those that it does not. Unsupported features of SQL92 are shown below. The order of this list gives some hint as to when a feature might be added to SQLite. Those features near the top of the list are likely to be added in the near future. There are no.. 더보기
SQLite3 http://sqlite.org UTF-16을 지원한다. sqlite3_open() UTF-8로 DB를 생성/오픈한다. sqlite3_open16() UTF-16으로 DB를 생성/오픈한다. C/C++ 로 지원하는 sqlite 함수는 3가지 이다. sqlite3_open() sqlite3_close() sqlite3_exec(sqlite3*, const char *sql, sqlite_callback, void*, char**); void* callback(void *NU, int argc, char **argv, char **azColName) 더보기
입력 기본 패턴 void input1(){ char str[256]; gets(str); } void input2(){ char str[256]; scanf("%254s", str); } 위와 같이 2가지 패턴을 사용하여 입력 받을 수 있다. 단 scanf 의 경우 중간에 space ' ' 가 생기면 글자 뒤가 저장되지 않는 문제가 있다. 입력 처리 시 엔터 문제가 발생한다. 엔터 문제는 123 입력 후 엔터를 치면 123은 str에 저장이 되나 엔터 값은 buffer에 남게된다. 그래서 이 후에 다시 scanf가 호출되면 입력 값이 들어가는 것이 아니라 buffer에 남아있던 엔터 값이 들어간다. 간단한 해결 방안으로 fflush(stdin)을 사용한다. 수정 코드는 다음과 같다. void input2(){ char .. 더보기