PostgreSQL 2テーブル目 at PHP
[2ch|▼Menu]
554:nobodyさん
06/11/04 01:45:34
>>552
「3日たったてる」の箇所が曖昧だが、さっき(11/04)試したら

test=# select * from sns_message;
 message_id | m_to | m_from |       insert        | status
------------+------+--------+---------------------+--------
          1 |  111 |    555 | 2006-11-04 00:00:00 |      1
          2 |  111 |    555 | 2006-11-03 00:00:00 |      1
          3 |  111 |    444 | 2006-09-11 00:00:00 |      1
          4 |  111 |    333 | 2006-11-07 00:00:00 |      1
          5 |  111 |    333 | 2006-11-08 00:00:00 |      1
(5 rows)

test=# select * from sns_message where insert > current_timestamp + '3 day';
 message_id | m_to | m_from |       insert        | status
------------+------+--------+---------------------+--------
          5 |  111 |    333 | 2006-11-08 00:00:00 |      1
(1 row)

となっていますが、何か問題あり?


次ページ
続きを表示
1を表示
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
暇つぶし2ch

5366日前に更新/193 KB
担当:undef