开发者

Bitwise operator in firebird

开发者 https://www.devze.com 2023-04-04 18:33 出处:网络
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

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

精彩评论

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