开发者

Bitwise operator in firebird

Can we do bitwise and in a firebird procedure without using a UDF? i开发者_开发百科s there one of the built in function or is there a way to get the same results with standard built in commands?

I tried http://www.firebirdsql.org/refdocs/langrefupd21-intfunc-bin_and.html (BIN_AND) also but i need some implementation without UDF.

Ex: (3 & 3) returns 3 in SQL but not in firebird(firebird 2.1).


Firebird doesn't have bitwise operators, the BIN_AND() function is the way to go. Since Firebird 2.1 those BIN_* functions are internal functions, ie they are always available without need to any external DLL or registering them as UDF.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜