我正在尝试从 a 中提取月份DATETIMESQLite 中的字段。month(dateField)效果不太好strftime('%m', dateStart).
DATETIME
month(dateField)
strftime('%m', dateStart)
有任何想法吗?
我不明白,答案就在你的问题中:
select strftime('%m', dateField) as Month ...