# 테이블 헤더(header)를 손쉽게 고정할 수 있어요

**URL:** <https://ask.selectfromuser.com/t/header/49>\
**Category:** 자유게시판\
**Tags:** table, header, fixed, tableoptions\
**Created:** [7월 13, 2023, 5:08오전 UTC](https://ask.selectfromuser.com/t/header/49 "2023-07-13T05:08:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hbkim](https://yyz2.discourse-cdn.com/flex032/user_avatar/ask.selectfromuser.com/hbkim/32/23_2.png) [@hbkim](https://ask.selectfromuser.com/u/hbkim)\
**Post date:** [7월 13, 2023, 5:08오전 UTC](https://ask.selectfromuser.com/t/header/49/1 "2023-07-13T05:08:23Z")

</div>

많은 데이터를 쭉 내려가면서 조회하다보면

일반적으로 테이블 헤더도 위로 올라가버리기 때문에  
어떤 데이터가 어떤 항목인지 헷갈리기 쉽습니다.

셀렉트에서는 아주 간단하게 테이블 헤더를 고정해서 이런 문제를 해결할 수 있어요.

조회 블록에 tableOptions.fixed를 추가해보세요.

```yaml
sql: SELECT * FROM users LIMIT 300
tableOptions:
  fixed: true
  height: calc(100vh-110px)

```

자세한 가이드는 아래 링크에서 확인하실 수 있습니다.

- [tableOptions 가이드](https://docs.selectfromuser.com/reference#blocks-tableoptions)

[![](https://canada1.discourse-cdn.com/flex032/uploads/selectfromuser/original/1X/a7e860d20eac2fb01a20f38b282b80bee94f6285.jpeg "테이블 헤더 고정") ](https://www.youtube.com/watch?v=s1Yjw3kSQEo)
