[pgsql-jp: 33764] Re: ビット演算について

Kazumasa Gotoh kgotoh @ cic-kk.co.jp
2004年 7月 27日 (火) 12:24:41 JST


From: TFL)久村 孝之 <hisamura.takayuki @ tfl.fujitsu.com>
Date: Tue, 27 Jul 2004 11:51:11 +0900

>  select id from test_table where (id & x'FF0000') = x'080000';

  select id from test_table where (id & cast(x'FF0000' as integer)) = cast(x'080000' as integer);

で、どうでしょうか。

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
(株) セントラル情報センター
                             後藤和政    kgotoh @ cic-kk.co.jp



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