Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Can anyone explain me what bin_and() means in firebird db?
How to convert the statement below to sql server 2008?

If (bin_and(VarA, VarB) = VarA)
Then
Begin

--my code

End


Thanks in advance,
Posted

It is exactly what documentation says[^]: the bitwise and operator.
The equivalent of this in MS SQL 2008 is an ampersand[^] i.e. '&'.

SQL
IF (VarA & VarB = VarA)...
 
Share this answer
 
Thank you so much, I will try this.
 
Share this answer
 
Comments
Christian Graus 16-Jan-14 21:41pm    
Please don't hit 'answer' to make a comment. Mark his answer as correct, and hit the 'have a question or comment' button to respond, as I have done.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900