[SQLLite] 날짜 활용 (strftime)
SQLLite 에서 날짜 형식의 String을 활용하는 방법을 확인해 본다. SELECT t.reg_date ,strftime('%F',reg_date) "%F" -- ISO 8601 날짜 : YYYY-MM-DD ,strftime('%T',reg_date) "%T" -- ISO 8601 시간 : HH:MM:SS ,strftime('%R',reg_date) "%R" -- ISO 8601 시간 : HH:MM ,strftime('%j',reg_date) "%j" -- 해당일수 (365일 중) ,strftime('%u',reg_date) "%u" -- 요일 (1-7) ,strftime('%w',reg_date) "%w" -- 요일 (0-6) ,strftime('%W'..
2024. 5. 14.