火鸟中的按位运算符
我们可以在 firebird 过程中执行按位与
而不使用 UDF 吗?有没有 内置函数之一或者有没有办法获得相同的结果 使用标准内置命令?
我尝试了 http://www.firebirdsql.org/refdocs/langrefupd21-intfunc-bin_and .html (BIN_AND) 也,但我需要一些没有 UDF 的实现。
例如:(3 & 3) 在 SQL 中返回 3
,但在 firebird(firebird 2.1) 中则不然。
Can we do bitwise and
in a firebird procedure without using a UDF? is 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).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Firebird 没有按位运算符,可以使用
BIN_AND()
函数。从 Firebird 2.1 开始,这些BIN_*
函数是内部函数,即它们始终可用,无需任何外部 DLL 或将它们注册为 UDF。Firebird doesn't have bitwise operators, the
BIN_AND()
function is the way to go. Since Firebird 2.1 thoseBIN_*
functions are internal functions, ie they are always available without need to any external DLL or registering them as UDF.