Received: from websales.com (IDENT:root@websales.com [192.153.125.97]) by hub.org (8.9.3/8.9.3) with ESMTP id WAA39406 for ; Thu, 2 Dec 1999 22:17:26 -0500 (EST) (envelope-from cgriffin@websales.com) Received: from [207.67.207.131] (webcc-isdn-131.webcc.net [207.67.207.131]) by websales.com (8.9.3/8.8.5) with ESMTP id TAA04595 for ; Thu, 2 Dec 1999 19:20:31 -0800 User-Agent: Microsoft Outlook Express Macintosh Edition - 5.0 (1513) Date: Thu, 02 Dec 1999 19:16:58 -0800 Subject: Re: [SQL] Logical and for int4? From: Chris Griffin To: Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit I wrote a c routine to 'and' to integers. I defined a function the defined the '&' operator. So now I can do the following: where (int_field & int_mask) <> 0 .... I turned out to be much easier that I expected. If anyone is interested in this or possibly other function/operators let me know.