タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

SQLとdbとpostgresqlに関するfjwr38のブックマーク (1)

  • postgresqlメモ - tomimemo

    #contents *数値フォーマット 0で埋める場合は以下 select to_char(12345, '00000000'); to_char ----------- 00012345 *現在日付からの加算と減算 以下の書式で書けた。便利。 ■現在時刻から1年2ヶ月3日4時間5分6秒後を取得 SELECT now() ,now() + '1year 2month 3day 4hour 5minute 6second'; now | ?column? -------------------------------+------------------------------- 2006-01-10 16:20:42.203232+09 | 2007-03-13 20:25:48.203232+09 (1 row) ■現在時刻から1年2ヶ月3日4時間5分6秒前 を取得 SELECT now

    postgresqlメモ - tomimemo
  • 1