In SQLite, use the strftime function to extract components from a date/time value
SELECT *
FROM table
WHERE strftime('%m', datemonth) = '03';
strftime(‘%m’, datemonth): extracts the month part from the datemonth column as a string (with leading zeros for single-digit months).
It is string from time.
strftime 方法按照 “%Y-%m-%d %H:%M:%S” 格式将日期和时间格式化为字符串并打印
strftime 是 python 的方法。
now

最低0.47元/天 解锁文章
2406

被折叠的 条评论
为什么被折叠?



