結論
select date_trunc('second',now()::timestamp);
メモ
date_trunc()
https://www.postgresql.jp/document/7.2/user/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC
postgreSQLはfrom句なしで結果返ってくるの知らなかった!
超便利♡
select date_trunc('second',now()::timestamp);
date_trunc()
https://www.postgresql.jp/document/7.2/user/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC
postgreSQLはfrom句なしで結果返ってくるの知らなかった!
超便利♡