티스토리 뷰

Sqlite 역시 다른 DB 와 마찬가지로 master table 이 존재한다는 것을 알게 되었습니다.



string sQuery = "select count(*) from sqlite_master Where Name = 'table_name';

result

- 0 : 존재하지 않음

- 1 : 존재



출처 : http://bloodguy.tistory.com/entry/SQLite3-%ED%85%8C%EC%9D%B4%EB%B8%94-%EC%A1%B4%EC%9E%AC-%EC%97%AC%EB%B6%80-%EC%B2%B4%ED%81%AC-check-table-exists



댓글
댓글쓰기 폼