[pgsql-jp: 37274] Re: 日付型の問い合わせ

SUGIMURA Takashi sugimura @ yasudakei.org
2006年 6月 22日 (木) 00:10:04 JST


杉村です。

5/12生まれだったりします。

> my_db=> select * from test where birthday = 1990-5-12;
>  no | name | birthday
> ----+------+----------
> (0 rows)
> 
> my_db=>
> 

この違いではないでしょうか。

sugimura=# select '1990-5-12';
 ?column?  
-----------
 1990-5-12
(1 row)

sugimura=# select 1990-5-12;
 ?column? 
----------
     1973
(1 row)

---
杉村 貴士 <sugimura @ YasudaKei.org>
GnuPG fingerprint: C81B 9835 1C9E BD9B 84BF  9785 0B91 D08B F667 DCED



pgsql-jp メーリングリストの案内