SQL语句当中类似“where reserved3&1 = 比如select * from A where reserved3&1 = 其中的&又是啥意思呢

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/27 23:32:47
SQL语句当中类似“where reserved3&1 = 比如select * from A where reserved3&1 = 其中的&又是啥意思呢

SQL语句当中类似“where reserved3&1 = 比如select * from A where reserved3&1 = 其中的&又是啥意思呢
SQL语句当中类似“where reserved3&1 =
比如select * from A where reserved3&1 =
其中的&又是啥意思呢

SQL语句当中类似“where reserved3&1 = 比如select * from A where reserved3&1 = 其中的&又是啥意思呢
不知道你什么数据库.
如果是 SQL Server 或者 MySQL 的话.
这个 & 是 按位 与操作的意思.
下面是一个例子代码:
SELECT
15 & 8 AS [0x0f位与0x08],
2 | 8 AS [0x02位或0x08],
15 ^ 3 AS [0x0f位异或0x03]
0x0f位与x08 0x02位或x08 0x0f位异或x03
----------- ----------- -----------
8 10 12
(1 行受影响)