본문 바로가기

🌱 dreaming DiNO

검색하기
🌱 dreaming DiNO
프로필사진 MK_____

  • DEVELOPE (113)
    • Android (92)
      • Android Studio (49)
    • Linux (2)
    • javaScript (3)
      • TypeScript (0)
    • intellj (0)
    • Web (2)
      • java (0)
      • sql (1)
      • servlet & jsp (0)
      • spring (1)
    • GIT (3)
    • Python (3)
    • 알고리즘 (3)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/08   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Tags
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Web/sql (1)

🌱 dreaming DiNO

[SQL] order by boolean column as true, null, false

SQL for sorting boolean column as true, null, false => 1번 방법으로 sorting @Query("SELECT * FROM $MISSING_TABLE_NAME ORDER BY (case when emergency then 1 else 2 end) asc") suspend fun getAll(): List Questions : SQL for sorting boolean column as true, null, false My table has three boolean fields: f1, f2, f3. If I do SELECT * FROM table ORDER BY f1, f2, f3 the records will be sorted by these fields i..

Web/sql 2022. 10. 5. 14:52
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바