只是得到一个字符串?然后使用具有日期格式的to_char函数,您需要postgresql.org/docs/8.2/static/functions-formatting.html. to_char(timestamp, 'YYYY-MM').
確定! 回上一頁