Files
doris/docs/en/sql-manual/sql-functions/bitwise-functions/bitand.md
jiafeng.zhang 267e8b67c2 [refactor][doc]The new version of the document is online (#9272)
replace the `docs/` with `new-docs/`
2022-04-28 15:22:34 +08:00

1.2 KiB

title, language
title language
bitand en

bitand

description

Syntax

BITAND(Integer-type lhs, Integer-type rhs)

Returns the result of the AND operation of two integers.

Integer range: TINYINT、SMALLINT、INT、BIGINT、LARGEINT

example

mysql> select bitand(3,5) ans;
+------+
| ans  |
+------+
|    1 |
+------+

mysql> select bitand(4,7) ans;
+------+
| ans  |
+------+
|    4 |
+------+

keyword

BITAND