Re: Bitwise Comparison in WHERE Clause
From: Stephen Howe (stephenPOINThoweATtns-globalPOINTcom)
Date: 04/26/04
- Next message: Developer: "Difference between adDate and adDBDate?"
- Previous message: aparna: "Bulk Insert from SQL server to Access"
- In reply to: Michael Hlavinka: "Bitwise Comparison in WHERE Clause"
- Next in thread: Michael Hlavinka: "RE: Bitwise Comparison in WHERE Clause"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 26 Apr 2004 12:50:28 +0100
> Can a bitwise comparison be made in the WHERE clause of a SELECT statement
using >ADO and the OLE DB Provided for Microsoft Jet? If so, can someone
provide a simple >example.
I can do bitwise comparisons for SQL Server. You might be able to do the
same for Jet, I do not know.
select count(flags) from track where (flags & 1) <> 0
That is a bitwise comparison. Only rows where the least significant bit set
are selected.
Stephen Howe
- Next message: Developer: "Difference between adDate and adDBDate?"
- Previous message: aparna: "Bulk Insert from SQL server to Access"
- In reply to: Michael Hlavinka: "Bitwise Comparison in WHERE Clause"
- Next in thread: Michael Hlavinka: "RE: Bitwise Comparison in WHERE Clause"
- Messages sorted by: [ date ] [ thread ]