火鸟中的按位运算符

发布于 2024-12-04 11:44:41 字数 381 浏览 8 评论 0原文

我们可以在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

千寻… 2024-12-11 11:44:41

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 those BIN_* functions are internal functions, ie they are always available without need to any external DLL or registering them as UDF.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文