質問

の質問はます。を探していPostgreSQLと同等の SQLite datetime機能.

役に立ちましたか?

解決 3

OKを回答いたものは正しい方向を向いている。私が実際にみ to_timestamp.

他のヒント

postgres=# select to_char(now(),'YYYY-mm-dd HH:MM:ss');
       to_char
---------------------
 2008-09-24 02:09:20
(1 row)

postgres=# select to_char(now(),'YYYY-mm-dd HH24:MM:ss');
       to_char
---------------------
 2008-09-24 14:09:20
(1 row)

思おう探:

タイムスタンプ[(p)][なし時間帯】 または タイムスタンプ[(p)]時間帯

その他の見@ http://www.postgresql.org/docs/8.1/interactive/datatype-datetime.html

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top