April 28, 2009 at 8:44 am
I am aware of what a bitmask is but I have never really seen it used. In SQL they are doing a select like this in order to get the right answer....
select * from material where materialuse0 & 2 = 2
Can someone explain how this works? also maybe what it is doing
April 28, 2009 at 8:54 am
A good explanation along with sample code and resulsts for bit masking is in BOL at:
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/20275755-4fa7-47b1-a9be-ac85606d63b0.htm
and:
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/f38f0ad4-46d0-40ea-9851-0f928fda5293.htm
and
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/02da8016-f6c0-41ae-8d59-33eaa02bfc95.htm
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply