Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从给定日期检索星期几。
例如日期是:2015-01-28那么它必须返回Wednesday
2015-01-28
Wednesday
select date_part('week',now()) as weekday;
上面的脚本只给了我星期几,而不是星期几。
尝试to_char():
to_char()
select to_char(now(), 'Day')