2022年3月10日 星期四

timestamp 查詢某月份資料

這裡timestamp和timestamp with time zone都可以處理

Select * From patient_examine_order where to_char(sampling_date, 'YYYYMM') like '202102%'

可以使用to_char再搭配like組字做使用

超難的阿~~

https://www.postgresql.org/docs/9.6/functions-formatting.html

沒有留言:

張貼留言

量身訂做建議(37 歲,6 年 Java 後端工程師)from chatgpt

🎯 量身訂做建議(37 歲,6 年 Java 後端工程師) 1️⃣ 先看你的條件 年齡 37 屬於「中高年資」工程師,履歷上的 深度 / 系統設計能力 會比「語言多寡」更重要。 6 年 Java 後端 代表你在 Spring Boot、資料庫、API 設計...