PostgreSQL 2テーブル目
at PHP
556:544
06/11/04 02:05:03
>>555
ありがとうございます
test=# select * from sns_message where insert > current_date - '3 day'::interval;
でいけました!
intervalにキャストしない状態だとcurrent_date +は通るんですがcurrent_date -は通らないんですね。
ERROR: invalid input syntax for type timestamp with time zone: "3 day"
だと怒られました。謎なんで調べてきます
本当にありがとう!
次ページ続きを表示1を表示最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
5366日前に更新/193 KB
担当:undef