# XLite - 엑셀 파일을 가상 테이블로 쿼리하는 SQLite 확장

> Clean Markdown view of GeekNews topic #6854. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=6854](https://news.hada.io/topic?id=6854)
- GeekNews Markdown: [https://news.hada.io/topic/6854.md](https://news.hada.io/topic/6854.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2022-06-28T09:17:54+09:00
- Updated: 2022-06-28T09:17:54+09:00
- Original source: [github.com/x2bool](https://github.com/x2bool/xlite)
- Points: 19
- Comments: 0

## Topic Body

- SQLite 내에서 .xlsx .xls .ods 파일을 열고 가상테이블로 쿼리 가능   
- 특정 워크 시트 선택, RANGE로 쿼리 범위 지정 가능   
- Rust로 작성된 SQLite 확장   
```SQL   
CREATE VIRTUAL TABLE class_data USING xlite(  
    FILENAME './path/to/example.xlsx',  
    WORKSHEET 'Class Data',  
    RANGE 'A2:F'  
);  
  
SELECT A, B, C, D, E, F from class_data;  
SELECT COUNT(*), D FROM class_data GROUP BY D ORDER BY COUNT(*);  
```

## Comments



_No public comments on this page._
