NOTE for Oracle bitand() function

来源:互联网 发布:win7网络克隆工具 编辑:程序博客网 时间:2024/05/22 18:39

Notes on the BITAND Function

The current implementation of BITAND defines n = 128.

PL/SQL supports an overload of BITAND for which the types of the inputs and of the result are all BINARY_INTEGER and for which n = 32.

 

结论:如果要在pl/sql里面对超过32位的数做bitand,不能用result:=bitand(a,b);而要用select bitand(a,b) into result from dual;

 

原创粉丝点击