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

沒有留言:

張貼留言

20251217 短期三個月目標

目前因為有傳福音需求 如果看起來不好, 見證也會不好的 1 體型優化: 再瘦10公斤(97->87) 2 早睡: 目前12:00-7:00->11:00-6:00(每早起來跑步) 3 吃健康: 每周4天健康餐(午晚)+水果 4 保養皮膚 5 固定週六進修辦讀書會 6 ...